Pull Request - Files Changed count shows '0' #198830
Replies: 3 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. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
hey @Mukil88 👋. this is a known class of issue with how github computes the PR diff vs the branch compare view ,,, they actually use different calculations under the hood, so "0 files changed" on the PR while the compare view correctly shows 149 is a sign the PR's cached merge-base/diff is stale or stuck, not that anything is actually wrong with your branch. most common cause. things to try :
your test PR #10 (1 commit, files changed: 1) working correctly while #7 and #11 (31 commits each, both showing 0) fail is a useful clue ,,, it really does look like it's specific to that branch's history/commit count rather than a general bug, possibly related to the merge-base getting confused by the number of commmits or how that branch diverged from master. if none of that works. since this is clearly a github-side calculation bug (the compare view proves the diff data exists), id also flag this with a direct link to this discussion in a new bug report if it persists ,,, the product feedback bot reply doesnt guarantee an engineer looks at it. good luck ❤️ |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
Body
Hi team,
Pull Request displays “0 files changed”, even though the source branch clearly has 149 modified files.
The PR UI shows 0 files changed.
Opening the branch directly shows the correct number of changed files.
Creating a new branch and opening a new PR results in the same behavior. This appears to be a PR diff calculation issue.
Files changed count shows as '0'.



But, when I access the branch, I can see the "Files Changed" count.
I have created a new branch from this branch and face the same issue.
Could you help investigate why the "Files changed" count is not showing correctly in PR?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions