Skip to content

Update README and script to include star ratings for plugins#2

Open
soderlind wants to merge 1 commit intomasterfrom
update/listing
Open

Update README and script to include star ratings for plugins#2
soderlind wants to merge 1 commit intomasterfrom
update/listing

Conversation

@soderlind
Copy link
Copy Markdown
Owner

This pull request updates the README.md and the update_plugins_readme.py script to display the number of GitHub stars for each WordPress plugin repository. The main improvements are the addition of star counts next to each plugin in the README and enhancements to the script to fetch and render this information automatically.

Enhancements to plugin metadata display:

  • The README.md now shows the number of GitHub stars next to each plugin name, making it easier for users to gauge the popularity of each plugin at a glance. [1] [2]

Improvements to the update script:

  • The script's fetch_repo_description function was renamed to fetch_repo_info and now retrieves both the repository description and star count from the GitHub API. [1] [2]
  • The HTML table generation logic was updated to append a star count next to each plugin name if the repository has at least one star.
  • The main script logic was modified to always fetch both the description and star count for each repository, ensuring the README remains up to date with the latest metadata.

- Added star ratings to plugin listings in README.md for better visibility of plugin popularity.
- Modified `fetch_repo_info` function in `update_plugins_readme.py` to retrieve and return star count from GitHub API.
- Updated HTML generation in `generate_html_table` to display star ratings next to plugin names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant