Skip to content

[Bug] gemini-scheduled-triage example uses a contradictory GitHub issue search query #499

@ShenaoW

Description

@ShenaoW

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 labels
  • label:"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"'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions