sindresorhus/refined-github

Do you want to work on this issue?
You can request for a bounty in order to promote it!
`restore-file` occasionally restores the wrong commit #4679
fregante posted onGitHub
Please ensure:
- The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.
Description
Rare occurrence but:
- Create
X
branch frommain
- Force-push
main
to something else - Create PR from branch
X
Now you'll have a PR with the changes that the force-push made.
- Click "Restore file" on one of the files in the PR
You'll notice that the feature "succeeds" but the commits are empty. This is a live example: 419c37c
(#4677)
Example URL
https://github.com/sindresorhus/refined-github/pull/4677, before it was rebased
Browser(s) used
Safari