You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
highlight-non-default-base-branch doesn't run on global PR/issue lists (/pulls, /issues) #9167
highlight-non-default-base-branch works on per-repo PR/issue lists (e.g. https://github.com/owner/repo/pulls) but does not run on the global PR/issue dashboards (/pulls, /issues, /pulls?author=@me, etc.).
In source/features/highlight-non-default-base-branch.tsx the only include is pageDetect.isRepoIssueOrPRList, so the feature is never registered on the global lists. The badge that would tell me "this PR targets a non-default branch" is exactly what I want most on /pulls?author=@me, where I review my own PRs across many repos and have no other quick way to spot one that targets a release/feature branch.
Note: extending to global lists is not a one-line include change — buildQuery, getDefaultBranch(), and buildRepoUrl() all assume a single-repo context, so the query needs to be grouped per repo (parsed from each row's href) and fetch each repo's defaultBranchRef alongside the PRs. Row markup would also need the React selectors used by open-all-conversations (a[data-testid="issue-pr-title-link"]).
Happy to send a PR if you confirm this is in scope.
Thanks for looking into this. As described that seems to be excessive as it would require a number of HTTP requests to be made every time you open the PR list, as opposed to just one in the repo PR list.
However from what I can tell there's room for improvement to the feature that would make it possible to make a single query.
We can get the default branch in the same query we get the PR data, we don't need the getDefaultBranch call at all.
Then buildRepoUrl is just a simple helper but we can build the URL from the user/repo combination we use to build the GQL query. There might be a small chance we can also get this URL from the query but this is less likely.
If you can send a PR exploring these improvements first, a followup PR can implement support for the global PR/issue list. I think the first PR would be quite small
It would reduce the query and response size, but if it's too annoying don't worry about it. Simpler code is almost always preferable to tiny optimization.
Activity
fregante commentedon Apr 7, 2026
Thanks for looking into this. As described that seems to be excessive as it would require a number of HTTP requests to be made every time you open the PR list, as opposed to just one in the repo PR list.
However from what I can tell there's room for improvement to the feature that would make it possible to make a single query.
We can get the default branch in the same query we get the PR data, we don't need the getDefaultBranch call at all.
Then buildRepoUrl is just a simple helper but we can build the URL from the user/repo combination we use to build the GQL query. There might be a small chance we can also get this URL from the query but this is less likely.
If you can send a PR exploring these improvements first, a followup PR can implement support for the global PR/issue list. I think the first PR would be quite small
`highlight-non-default-base-branch` - Get default branch and repo fro…
`highlight-non-default-base-branch` - Get default branch and repo fro…
`highlight-non-default-base-branch` - Get default branch and repo fro…
`highlight-non-default-base-branch` - Get default branch and repo fro…
`highlight-non-default-base-branch` - Get default branch and repo fro…
`highlight-non-default-base-branch` - Get default branch and repo fro…
fregante commentedon Apr 7, 2026
It would reduce the query and response size, but if it's too annoying don't worry about it. Simpler code is almost always preferable to tiny optimization.
`highlight-non-default-base-branch` - Support global PR/issue lists