Pull Request Diffs Do Not Update After Changes Are Made #16351
Replies: 23 comments 49 replies
|
pull request diffs seem to be using a 3 dot diff instead of a 2 dot diff ( 2 dot diff against the current head of the target branch is what it should be doing.) its dangerous and it makes the github pull request/ review screen completely useless. they need to fix it. |
|
Yeah I'm seeing the same thing here. Open the PR, make changes, and the PR |
|
I am also facing this issue , even I removed the changes and added them again with new commits , still it's not detecting them. |
|
Yeah, this is making reviews more difficult than they need to be. Would love for this to be addressed |
|
This is a shock to our development team migrating from bitbucket recently. Any workaround I can implement to show diff from target branch and not all the changes done since last common commit? I want to see the changes a PR will do |
|
I've noticed this a while ago and couldn't figure out the cause. Sometimes a PR also shows conflicts but when I did the manual merge there's none. Also sometimes when we update the base branch of PR in hope of resolving the conflicts, the PR page still shows the same conflicts even though in fact the conflicts have been resolved due to the latest commit made into the base branch. |
|
This is happening to me today -- PRs are not updating after pushing to the branch |
|
seems like this is a nice workaround: https://github.com/orgs/community/discussions/16351#discussioncomment-6327770
[wanted to make the solution easily visible 😄] |
|
Also I think the actions are not being run on the missing commits even after changing the base branches... It's a major issue. |
|
It's still an issue, diff is strange, merge conflicts, etc. |
|
Coming from Azure Devops this makes no sense to me.. I get that some people might prefer it so make it an option against the repository? |
|
It seems you're experiencing a problem with GitHub's pull request (PR) interface not displaying the correct changes after a requested change has been made. This can be frustrating, especially when trying to verify changes without leaving GitHub. To address this: Clear Browser Cache: Sometimes, caching issues can cause discrepancies in the displayed content. Try clearing your browser cache and refreshing the PR page. Hard Refresh: Use a hard refresh (usually Ctrl + F5 or Shift + Ctrl + R) to force your browser to fetch the latest content. Review Comments: Make sure the PR author has properly addressed your comments. Review the PR discussion to confirm that the requested changes were indeed made. Use GitHub's "Review Changes" Feature: Instead of relying solely on viewing individual files, use GitHub's "Review Changes" feature. It displays all changes in the PR at once, making it easier to verify changes. Compare View: In the PR, click on the "Files changed" tab and then click "Review changes." This view should show you all the changes made in response to your comments. Diff URL: Manually check the diff URL in the address bar. It should include the commit hash of the latest changes. For example: https://github.com/user/repo/pull/123/files?diff=split#commit-hash. Logged Out: Sometimes, staying logged out of GitHub and then logging back in can help resolve display issues. Check GitHub Status: Occasionally, GitHub may experience service disruptions. Check the GitHub Status page to ensure there are no ongoing issues. Contact GitHub Support: If the problem persists, you can reach out to GitHub Support for assistance. Use the GitHub Support platform to report the issue. Stay Updated: Keep an eye on the discussion in the GitHub issue you mentioned. Others might share solutions or workarounds if they've experienced the same problem. Remember, while waiting for a resolution, you can continue using the workaround of pulling down the branch to verify changes if needed. |
|
sorry for my misunderstanding |
|
Sharing my experience here, as it's hard to find information on this issue, and it's really bother me I am maintaining a declarative dependency management tool to automate file update https://github.com/updatecli/updatecli/ For various reason, Updatecli will often reuse the same temporary branch so we automatically delete them when a pull request is merged. It took us a few weeks back then to recover from it, and since then we randomly see wrong "diff" information like from an old branch which is supposed to be have been delete since then. An example here civo/kubernetes-marketplace#545 (comment) Usually we just close the pull request, delete the branch, and let Updatecli recreate everything correctly but ideally I would like to find a solution |
|
Why github is so stubron on basic functionalities? The same goes with fast-forward merges. So baSIC! |
|
Faced this today and the only thing that worked for me is to create a fresh PR, merge my previous PR into it to get the correct diff against main |
|
I've been having this issue for months. Re-selecting the base branch (ie. main) for a PR usually forces it to update the file changes diff. Edit: I contacted github support and they said it's a known quirk and they have an open issue to fix it in a future release. |
Because github is trash, apparently. This is, indeed basic functionality, and if it can't get this right why should I trust it to do anything? |
|
I closed and reopened the PR, and then the diff on GitHub worked properly. |
|
Wondering if this will be addressed at some point since it can easily lead to unwanted behaviour / wrong code reviews.. |
|
Also just discovered this issue after 5 years of using GitHub professionally. I was wondering why I was not seeing the right diff after the target branch updated and a Google search led me here. I didn't even notice before, as it's a silent error. I thought that what I was always seeing was "Files changed" between the target branch and incoming branch, so I never questioned it until it became very obvious in my latest PR. It is absolutely not expected behaviour for it to be anything else. And yet it is. Are GitHub ever going to address this really poor user experience? |
|
Bitbucket had a correct diff showing before their "performance improvement" in 2022 that intentionally dropped the "3-way" diff we all here want https://www.atlassian.com/blog/bitbucket/improving-performance-on-complex-diffs There was a comment somewhere from the maintainer of that feature that it became too hard to maintain this feature effort-wise, as it was conflicting with other Bitbucket features (which could be a similar cause for GitHub), but I can't find their comment anymore (maybe it was removed/hidden/redacted). That has become a huge pain for anyone who does not want to follow a rigid gitflow or trunk-based development (i.e. can't simply rebase/pull target branch into the source branch without creating more temporary branches). And I suppose it was always the case for GitHub in particular? |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I comment on a PR requesting a change and the change is made, the diff does not show the change. It only shows the file as it was when I made the comment. Even if I click "view file" it shows the old one. That means, in order to verify that the change satisfied my request, I need to leave Github, pull down the branch and find it myself. All while Github tells me that file had "Changed since last view" without showing me the changes.
See previous discussion here: isaacs/github#750 (comment)
That Issue suggested posting here in 2021, but it doesn't look like anyone did.
All reactions