Stale Contributor Attribution Returned by GitHub REST API After Force-Push #214104
Unanswered
Sp2736
asked this question in
Apps, API and Webhooks
Replies: 1 comment
|
💬 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. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
GITHUB_CONTRIBUTORS_CACHE_BUG_REPORT.md
Stale Contributor Attribution Returned by GitHub REST API After Force-Push
Hello GitHub team,
I would like to report an issue I encountered with GitHub's REST API, specifically:
GET /repos/{owner}/{repo}/contributorsSummary
After rewriting Git history using
git commit-treeand pushing the corrected history usinggit push --force, GitHub's contributors API continued returning an outdated contributor entry for an account that no longer had any reachable commits in the affected repositories.The stale attribution persisted for several hours and was subsequently consumed by an automated GitHub Actions workflow, which committed the incorrect contributor information into repository README files.
Observed behavior
I initially had an incorrectly configured Git noreply email:
153967041+Sp2736@users.noreply.github.comAfter identifying the mismatch, I corrected it to:
174768375+Sp2736@users.noreply.github.comI then rewrote the affected commit history and force-pushed the corrected branches.
I verified that the rewritten repository histories no longer contained commits attributed to the previously misidentified account.
However, on November 25, 2026, subsequent requests to the contributors endpoint continued returning the old contributor attribution.
This occurred across four repositories:
Sp2736/counseling-reports-portalSp2736/arcadeSp2736/asset-flowSp2736/flyer-personalizerOn November 26, 2026, the endpoint eventually returned refreshed contributor information, and the incorrect attribution disappeared from all four repositories.
Why this matters
This behavior creates a reliability problem for applications consuming GitHub's contributor API.
For example:
200 OKresponse contains stale contributor data.Questions and suggestions
I would appreciate clarification on the following:
/contributorsendpoint?<user_id>+<username>@users.noreply.github.comto prevent silent account misattribution?Suggested improvements
I understand that the initial email configuration mistake originated on my end. However, the persistence of the incorrect contributor data after correcting the commit history is the behavior I would like the engineering team to investigate.
I have documented the complete reproduction timeline, affected repositories, API observations, verification process, and proposed improvements in an attached technical report.
Thank you for taking the time to review this. I would appreciate confirmation of whether this behavior is expected or represents an issue with contributor statistics caching or attribution resolution.
Regards,
Sp2736
All reactions