PR notification link is useless on push force #31738
Replies: 2 comments
-
|
It should definitly need to display the files changed but with a toast message "force pushed" |
Beta Was this translation helpful? Give feedback.
-
|
It seems that the annoying We went looking everywhere, but couldn’t find those commits. only happens in one diff view of the GitHub UI, but not another, so the commits aren't lost. Here's a real example why GitHub could actually show the diff. It's from this PR, but I'm not sure how long after merge you'll still be able to see the same. The author made some rebases, and GitHub shows the from-to commit hashes: The "compare" link is of the form Now as a reviewer, I want to see what changed since my last review, so I switch to "Files changed > All commits dropdown > Changes since your last review" (btw I'm on the new PR experience already). And I get the dreaded "We went looking everywhere, but couldn’t find those commits.". The link for this view is I'm not giving up though. Let's fill the from-to commits from the "Changes since your last review" link into the A diff-of-diffs view would be such a win for all reviewers around the globe. Phabricator Differential, which has been dead for a long time, had exactly that feature, and it was really great to quickly review stuff despite rebase. So for now, as a reviewer on GitHub, I have to use this trick to change URLs, and then jump to the files changed in the PR, which often gives me a good picture what the author has changed vs. what came in through the rebase. Here's an example how it could look like: example review in Phabricator Differential. Go to "Revision Contents > History" and under "Base", you'll see the parent commit of each revision of the review. The review got rebased once. Click the radio buttons on the right to see the difference between "Diff 1" and "Diff 2" (= the last revision done to the review). And you'll see it was an empty rebase. You don't see all the stuff that came in by rebasing. It's a real diff-of-diffs. The source code must be somewhere in the still-existing Phabricator repo. I'm really longing to have that functionality back... (On the same note: yeah there's |
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.
-
edit: dupe of #5373 which I'd apparently forgotten about, but it doesn't seem like it's possible to close or dupe discussion threads.
If a PR is pushed to, the notification's link shows the diff betweeb the pushed-from and pushed-to commits.
This is OK when adding new commits to a PR, but it's useless any time the PR is reset / force-pushed e.g.
rebase -i(e.g. fixup)In all those cases, because the new head is not a descendent of the old head github links to an empty diff view, which it knows will be empty, with
Github actually provides a sometimes useful textual diff in the
the "force pushed" words link to the
/compareview between theaandb. This is completely useless when rebasing on upstream (as all the changes of upstream will be visible), but it at least has some odds of being informative.Beta Was this translation helpful? Give feedback.
All reactions