Skip to content

bugs-tab - Support labelless repos - #10336

Merged
fregante merged 2 commits into
refined-github:mainfrom
zbeyens:bugs-tab-type-only
Nov 1, 2026
Merged

fregante merged 2 commits into
refined-github:mainfrom
zbeyens:bugs-tab-type-only

Conversation

@zbeyens

@zbeyens zbeyens commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

When a repository has no bug label, countBugs still returned the label name bug, so the tab linked to (label:bug OR type:Bug). GitHub then shows "Invalid value bug for label" above the results. This happens in repositories that moved from a bug label 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, getBugsLabel still falls back to bug, 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 bug label, opens (label:bug OR type:Bug) and GitHub warns about the label.

Before: the Bugs tab query with the invalid label warning

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.

After: the type:Bug query with no warning

@zbeyens
zbeyens marked this pull request as ready for review October 27, 2026 11:01
@fregante
fregante enabled auto-merge (squash) November 1, 2026 10:10
@fregante fregante changed the title bugs-tab - Search only type:Bug when the repo has no bug label bugs-tab - Support labelless repos Nov 1, 2026
@fregante fregante added the bug label Nov 1, 2026
@fregante
fregante merged commit 3fede51 into refined-github:main Nov 1, 2026
20 checks passed
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.

2 participants