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
In one of our repositories we closed all issues as "not planned", and then disabled the "issues" tab entirely. But this extension is still adding the "Bugs" tab despite when you click on it, it has 0 results.
If the "Issues" tab is disabled (Repo "Settings" -> "Issues"), the "Bugs" tab should not be added at all.
This is a stale cache issue either in Refined GitHub or on GitHub. We rely on GitHub to tell us how many bugs are open. If the search returns 0, then the tab will not appear already.
If the API returns a wrong number, then it's an API bug (unless our API call is somehow incorrect)
@fregante it's not about the issues though, the feature request is more regarding if the issues tab is disabled (in our case, has been for months), then there might still be issues that are open. But the bugs tab should be removed. No point in having a bugs tab if the issues tab is disabled anyway?
if the issues tab is disabled (in our case, has been for months), then there might still be issues that are open
That's not what the second screenshot shows. If GitHub's own search returns zero results, the API should also return zero results and therefore the tab already shouldn't appear. The logic is already there.
We need to check what API call is going through:
options page -> debugging -> clear cache
open developer tools
visit that repo in the same tab with the dev tools open
Refined GitHub should also do a call to repo settings to see if issues tab is enabled at all. Seems like GitHub does something to return no issues when issue tab is disabled for their own search.
Activity
fregante commentedon Sep 4, 2026
Can you provide an example URL? The tab already shouldn't appear if the search results give zero results.
jannes-io commentedon Sep 4, 2026
No, it's a private repository and I don't know of any repositories that have issues disabled off the top of my head.
fregante commentedon Sep 4, 2026
Did you just now disable the issues?
fregante commentedon Sep 4, 2026
This is a stale cache issue either in Refined GitHub or on GitHub. We rely on GitHub to tell us how many bugs are open. If the search returns 0, then the tab will not appear already.
If the API returns a wrong number, then it's an API bug (unless our API call is somehow incorrect)
jannes-io commentedon Sep 4, 2026
Negative, the issues tab has been disabled for months.
jannes-io commentedon Sep 4, 2026
@fregante it's not about the issues though, the feature request is more regarding if the issues tab is disabled (in our case, has been for months), then there might still be issues that are open. But the bugs tab should be removed. No point in having a bugs tab if the issues tab is disabled anyway?
fregante commentedon Sep 4, 2026
That's not what the second screenshot shows. If GitHub's own search returns zero results, the API should also return zero results and therefore the tab already shouldn't appear. The logic is already there.
We need to check what API call is going through:
For this repo, it looks like this:
{ "data": { "repository": { "labels": { "nodes": [ { "name": "bug", "issues": { "totalCount": 33 } }, { "name": "github bug", "issues": { "totalCount": 5 } }, { "name": "oldest bug 🦖", "issues": { "totalCount": 3 } } ] }, "issues": { "totalCount": 0 } } } }jannes-io commentedon Sep 4, 2026
I have been able to create a reproduction repository here: https://github.com/jannes-io/bugs-test
To reproduce:
Now the "Issues" tab is gone, "Bugs" tab is still there, when clicking it, it shows no issues.
https://github.com/jannes-io/bugs-test
{"data":{"repository":{"labels":{"nodes":[{"name":"bug","issues":{"totalCount":1}}]},"issues":{"totalCount":0}}}}Refined GitHub should also do a call to repo settings to see if issues tab is enabled at all. Seems like GitHub does something to return no issues when issue tab is disabled for their own search.
fregante commentedon Sep 4, 2026
Thank you, in the meantime I also validated the issue here 😅
https://github.com/bfred-it-org/no-issues/issues
{ "data": { "repository": { "labels": { "nodes": [ { "name": "bug", "issues": { "totalCount": 1 } } ] }, "issues": { "totalCount": 0 } } } }I can confirm that this is a GitHub issue, which you can also confirm by visiting the labels page:
You might want to report it to GitHub, but we can also use
Math.min()to ensure that the total number of bugs never exceeds the issue count.Will open a PR