Skip to content

list-prs-for-branch - Restore feature - #10332

Merged
fregante merged 1 commit into
mainfrom
claude/list-prs-for-branch
Nov 1, 2026
Merged

fregante merged 1 commit into
mainfrom
claude/list-prs-for-branch

Conversation

@fregante

Copy link
Copy Markdown
Member

Created by Claude, will be reviewed by @fregante first.

The commits page now uses a React branch button instead of details#branch-select-menu, so the feature found nothing to attach to. It now hooks into branchSelector and adds the PR link right after the button. Removes the unused branchSelectorParent and addAfterBranchSelector.

Fixes #9151

Test URLs

https://github.com/refined-github/sandbox/commits/4679-1
https://github.com/refined-github/sandbox/commits/branch/with/slashes

Checked

On the server-rendered markup of https://github.com/refined-github/sandbox/commits/4679-1, in Chromium with a build that had a token: main adds nothing, this branch adds the #28 link as the next sibling of the branch button. details#branch-select-menu matched 0 elements on every branchSelector_ test URL.

Not checked (reviewer tasks)

@github-actions github-actions Bot added the bug label Oct 26, 2026
@fregante

fregante commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

On the commits page it's sometimes being added inside the button group created by default-branch-button. It should not be inside.

@fregante

fregante commented Nov 1, 2026

Copy link
Copy Markdown
Member Author
Screenshot 7

@fregante
fregante marked this pull request as ready for review November 1, 2026 10:51
@fregante
fregante merged commit 12ddb20 into main Nov 1, 2026
16 checks passed
@fregante
fregante deleted the claude/list-prs-for-branch branch November 1, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

list-prs-for-branch broken

1 participant