Repository homepage sidebar shows 40 contributors, but the API (including anonymous) returns only 21 #212995
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Hi, Your checks are thorough, and the default branch workaround you tried is the standard first step. Here is what I would still check, and how to escalate. 1. Check whether old commits are still reachable from other refs The API counts contributors from the default branch, but the sidebar can draw on the whole repository network. Pull request refs, tags, other branches and forks can all keep old commits and their authors reachable: git ls-remote origin | grep -v "refs/heads/main"Look for git fetch origin '+refs/pull/*:refs/remotes/origin/pr/*' '+refs/heads/*:refs/remotes/origin/*' --tags
git log --all --format='%an <%ae>' | sort -u
git log --all --format='%b' | grep -i "co-authored-by" | sort -uIf the extra ~19 accounts show up here, the sidebar is working as designed and counting them from those refs, and the discrepancy is expected behavior, not stale data. 2. Check forks If the repository has many forks with commits that were later merged back or that share history, authors from the wider network can feed the sidebar. Also check whether the repository was ever renamed, transferred, or rebuilt from another history (for example a squash or an import), since old contributor data can follow the repository. 3. Safe ways to prompt a recalculation
git commit --allow-empty -m "chore: refresh repository stats"
git push origin main
4. Escalation Community members can't rebuild contributor data, and the discussions you linked were resolved by GitHub staff. To increase the chance of a staff response:
Please don't post private details in this thread. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
Repository
https://github.com/team-cowork/cowork-server
Problem
The Contributors section in the repository homepage sidebar shows 40 contributors.
However, every authoritative source shows only 21 contributors (including bots and anonymous contributors).
About 19 accounts in the sidebar have no commits in the current history.
Verification
1. Contributors API (anonymous included) returns 21
The only anonymous entry is our version bump bot (1 commit).
2. Contributors API (linked accounts) returns 20
3. Local history matches the API
git shortlog -sne origin/mainandCo-authored-bytrailers on the default branchcontain no authors beyond the accounts above.
What I already tried
Expected
The sidebar should show the same contributors as the Contributors API (21).
Request
Since the documented 24-hour refresh window has passed and the default branch workaround did not help, it looks like the sidebar is using stale cached contributor data.
Could a GitHub staff member please refresh or rebuild the contributor data for this repository?
Similar cases were resolved by a manual refresh (e.g. #205703, #205858).
Screenshot of the sidebar is attached below.
All reactions