Repository navigation
restore-file - Restore support on older PR view and GHE - #10301
Merged
Merged
Conversation
actionable-pr-view-file - Restore support on older PR view
fregante
approved these changes
Oct 20, 2026
fregante
left a comment
Member
There was a problem hiding this comment.
Have you tested this? Would be great to provide a screenshot if the relevant links, hovered, with the working link shown in the browser's statusbar
Contributor
Author
|
@fregante yes, i use the plugin mainly for the "discard changes" button on pr's. This was no longer working, and is working again after this fix. (The screenshot in the PR doesnt show much except that it successfully works i guess) |
Contributor
Author
actionable-pr-view-file - Restore support on older PR viewrestore - Restore support on older PR view and GHE
restore - Restore support on older PR view and GHErestore-file - Restore support on older PR view and GHE
Member
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


restore-file: Expectedabsoluteto be "user/repo:branch", got "" #9898Fix
actionable-pr-view-filecrash on legacy PR files viewOn the legacy "Files changed" view,
parseReference()read the fulluser/repo:branchreference from the element after.head-ref/.base-ref. GitHub now renders only a copy-to-clipboard button there,so that element has no text, and
parseReferenceRaw()threw:This showed an error toast on PR files pages, including after using
"Discard changes" on a file, and stopped "View file" from being rebuilt
to point at the head branch.
The full reference is still available in the
titleattribute of the.head-ref/.base-refelement, so fall back to it when thesibling's text is empty. The newer React view keeps reading the
sibling as before.
Test URLs
Screenshot