Profile contribution graph still counts replaced commits after a squash #212589
Replies: 4 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. ⭐ |
|
Live-verified your numbers, and your arithmetic is right: the current history of stickman-rl-lab shows 39 commits in that July 31 (UTC+8) window — matching your post-squash count — while the profile cell shows 117 ≈ 81 (old, now-unreachable commits) + 36 (new squashed commits). I.e., the graph is counting the replaced commits as well as their replacements. The mechanism, as best it's documented: the contribution graph is event-fed, not history-fed — a contribution is recorded when a commit is pushed to the default branch, and a force-push that replaces commits doesn't emit retraction events for the old ones. So after a squash, both generations remain counted until some recompute pass reconciles the graph with the live history. That's the same reason deleted-repo contributions can linger on profiles. Practical expectations:
|
|
I can't verify the mechanism described in the reply above (event-fed counting, the recompute backlog, or the incident link), so I won't build on it. Some checks you can run yourself:
|
|
@iheblaswd's reachability check is exactly the right test — so I ran it, and it comes back clean: The repository has exactly one ref: So both branches of the check now point the same way:
For @siddhartha-yz nothing changes in the practical advice: don't re-rewrite (it adds another event generation), expect the recompute pass to reconcile the cell to ~39 eventually, and the incident backlog (#203416) is what's delaying that recompute right now. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Profile
Body
After squashing commits and force-pushing the default branch of stickman-rl-lab on November 10, 2026, the July 31 cell on my profile increased from 81 to 117 contributions.
mainhad 81 commits authored on July 31, 2026 (UTC+8).main(a32130e) has 39 on that date. Three SHAs are shared, so the other 36 are new.The troubleshooting guide describes stale counts after rewriting history. Is there a supported way to refresh the profile contribution data so it counts only eligible activity, without rewriting the branch again?
All reactions