Pull Request Diffs Do Not Update After Changes Are Made #16351
Replies: 20 comments 44 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. |
Beta Was this translation helpful? Give feedback.
-
Yeah I'm seeing the same thing here. Open the PR, make changes, and the PR |
Beta Was this translation helpful? Give feedback.
-
I am also facing this issue , even I removed the changes and added them again with new commits , still it's not detecting them. |
Beta Was this translation helpful? Give feedback.
-
Yeah, this is making reviews more difficult than they need to be. Would love for this to be addressed |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
This is happening to me today -- PRs are not updating after pushing to the branch |
Beta Was this translation helpful? Give feedback.
-
seems like this is a nice workaround: https://github.com/orgs/community/discussions/16351#discussioncomment-6327770
[wanted to make the solution easily visible 😄] |
Beta Was this translation helpful? Give feedback.
-
Also I think the actions are not being run on the missing commits even after changing the base branches... It's a major issue. |
Beta Was this translation helpful? Give feedback.
-
It's still an issue, diff is strange, merge conflicts, etc. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
sorry for my misunderstanding |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Why github is so stubron on basic functionalities? The same goes with fast-forward merges. So baSIC! |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
I closed and reopened the PR, and then the diff on GitHub worked properly. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions