Repository navigation
bugs-tab - Support labelless repos - #10336
Merged
Merged
Conversation
zbeyens
marked this pull request as ready for review
October 27, 2026 11:01
fregante
enabled auto-merge (squash)
November 1, 2026 10:10
bugs-tab - Search only type:Bug when the repo has no bug labelbugs-tab - Support labelless repos
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.
When a repository has no bug label,
countBugsstill returned the label namebug, so the tab linked to(label:bug OR type:Bug). GitHub then shows "Invalid valuebugforlabel" above the results. This happens in repositories that moved from abuglabel to the Bug issue type and deleted the label.With no bug label found, the tab now links to
type:Bug, and the label-based checks (the/labels/<name>page and the label in an issue's sidebar) are skipped. Repositories that have a bug label keep the current(label:… OR type:Bug)query.Before the first count is cached,
getBugsLabelstill falls back tobug, as it did before, so a first visit to a labelled repository's bug listing selects the tab right away.AI-assisted (Claude Code).
Test URLs
Screenshot
Before: the Bugs tab on udecode/plate, which has no
buglabel, opens(label:bug OR type:Bug)and GitHub warns about the label.After: with this change the tab opens
type:Bug, which lists the same 91 issues with no warning. This screenshot shows that search page; the extension in it is the store build, not this branch.