Skip to content

Fix PR branch selectors for new GitHub React UI#8948

Closed
maschwenk wants to merge 1 commit intorefined-github:mainfrom
maschwenk:maschwenk/fix-restore-file-selector
Closed

Fix PR branch selectors for new GitHub React UI#8948
maschwenk wants to merge 1 commit intorefined-github:mainfrom
maschwenk:maschwenk/fix-restore-file-selector

Conversation

@maschwenk
Copy link
Contributor

@maschwenk maschwenk commented Feb 5, 2026

Fixes:

Summary

  • Fix restore-file and other features that use getBranches() by updating selectors for the new GitHub React UI
  • GitHub changed the PR header structure - branch references are now in PullRequestBranchName elements within the summary container
  • The old selector looked for nested PullRequestHeaderSummary elements which no longer exist

Test plan

GitHub changed the PR header structure - branch references are now in
`PullRequestBranchName` elements within the summary container, not nested
`PullRequestHeaderSummary` elements.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@maschwenk maschwenk force-pushed the maschwenk/fix-restore-file-selector branch from 6e4d1c1 to 55c909e Compare February 5, 2026 03:46
@maschwenk maschwenk marked this pull request as ready for review February 5, 2026 03:47
@SunsetTechuila
Copy link
Member

Thank you for the contribution but this is a duplicate of #8938

@SunsetTechuila
Copy link
Member

SunsetTechuila commented Feb 5, 2026

Good to know that this also fixes restore-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants