refined-github/refined-github

`bugs-tab` undercounts bugs if repo uses labels and types inconsistently

Offen

#8.579 geöffnet am 24.07.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.423 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (22.918 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 18h) (44 gemergte PRs in 30 T)

Beschreibung

A repo with three issues:

  • #12 - label: bug
  • #34 - label: bug, type: Bug
  • #56 - type: Bug

These are 3 bug, but the tab will show 2.

We should count the issues returned by the exact search query we show the user in the end: is:issue is:open (label:bug OR type:Bug)

The problem is that this further delays the tab because it needs:

  1. query to find the exact bugs label used by the repo
  2. query to count the issues returned by the search query

Followup to https://github.com/refined-github/refined-github/pull/8578

Contributor Guide