-
Notifications
You must be signed in to change notification settings - Fork 247
[Bug] gemini-scheduled-triage example uses a contradictory GitHub issue search query #499
Copy link
Copy link
Open
Labels
area/workflowsgithub_actionsgood first issueGood for newcomersGood for newcomerskind/bugSomething isn't workingSomething isn't working
Description
TL;DR
In examples/workflows/issue-triage/gemini-scheduled-triage.yml, the Find untriaged issues step uses this query:
| --search 'no:label label:"status/needs-triage"' \ |
This appears to be logically incorrect. That exact line is currently present in the workflow example.
Expected behavior
The workflow should find issues that need triage, e.g.:
- issues with no labels, or
- issues explicitly labeled
status/needs-triage
Observed behavior
The current query:
--search 'no:label label:"status/needs-triage"'is interpreted as:
no:label AND label:"status/needs-triage"
These conditions conflict:
no:label→ issue has no labelslabel:"status/needs-triage"→ issue has a label
So the query will typically return no results.
Suggested fix
If the intent is to find issues that either have no labels or are explicitly marked for triage, the query should be:
--search 'no:label OR label:"status/needs-triage"'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/workflowsgithub_actionsgood first issueGood for newcomersGood for newcomerskind/bugSomething isn't workingSomething isn't working