Skip to content

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

Closed

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"'

Activity

  1. gemini-cli commented on Apr 7, 2026

    @gemini-cli
    Contributor

    🤖 Hi @ShenaoW, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

  2. ShenaoW commented on Apr 7, 2026

    @ShenaoW
    ContributorAuthor

    Hi maintainers,
    I’ve reproduced this issue locally and prepared a fix. If you confirm this, I’d be happy to open a PR to contribute.

  3. ShenaoW commented on Apr 17, 2026

    @ShenaoW
    ContributorAuthor

    @precision @rspier @R2wenD2 @cornmander Hi, maintainers~ Any updates on this issue and PR?

  4. ShenaoW commented on Apr 25, 2026

    @ShenaoW
    ContributorAuthor

    @ehedlund Hi, could you also help me check this issue and PR?

  5. ShenaoW commented on Apr 25, 2026

    @ShenaoW
    ContributorAuthor

    @ehedlund After PR #505, this issue still exists!

    --search 'no:label label:"status/needs-triage"' \

  6. ghost closed this as completedin #500on Apr 27, 2026
  7. added a commit that references this issue on Apr 27, 2026
    57977bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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