Improve project status report table format and fix commit count accuracy#56
Conversation
Co-authored-by: gvegayon <[email protected]>
Co-authored-by: gvegayon <[email protected]>
|
@gvegayon How close is this to being ready to merge? |
|
@copilot, the number of commits is off. For example, UofUEpiBio/epiworldR has over 500 commits, but the table you prepared only has 30. Fix that. |
…ccurate totals Co-authored-by: gvegayon <[email protected]>
Fixed the commit count issue in commit c7a8c2f. The problem was that the script was prioritizing the participation stats API which only returns data for the last 52 weeks, causing significant undercounting for repositories with long histories like UofUEpiBio/epiworld. Updated the logic to:
This should now show the correct 500+ commits for UofUEpiBio/epiworld and other repositories with extensive commit histories. |
This PR implements improvements to the project status report generation to create a more compact and readable table format, and fixes a critical issue with commit count accuracy.
Table Format Improvements
Consolidated Table Columns
Combined three separate columns ("Issues", "PRs", "Last Commit") into a single "Issues, PRs, and Last Commit" column with line breaks between each component. This reduces the table width from 7 columns to 5 columns, making it more readable.
Before:
After:
Removed Contributor Count Numbers
Eliminated the redundant contributor count numbers (e.g., "(20)") that appeared after contributor avatars in the Contributors column. The visual avatars alone provide sufficient indication of contributor activity.
Enhanced Table Cell Formatting
The combined column uses
<br>tags to properly separate Issues, PRs, and Last Commit information within a single table cell, maintaining readability while reducing horizontal space.Commit Count Accuracy Fix
Fixed a significant issue where repositories were showing drastically incorrect commit counts. For example, UofUEpiBio/epiworld was showing only 30 commits instead of the actual 500+ commits.
Root Cause: The script was prioritizing the GitHub participation stats API, which only returns commit data for the last 52 weeks, causing severe undercounting for repositories with long development histories.
Solution: Restructured the commit counting logic to:
Example Output
All changes are backward compatible with existing YAML data structure and workflow configuration.
Fixes #55.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.