Skip to content

fix: use OR operator in scheduled triage issue search query#508

Closed
Sif-2 wants to merge 1 commit intogoogle-github-actions:mainfrom
Sif-2:fix/issue-triage-query
Closed

fix: use OR operator in scheduled triage issue search query#508
Sif-2 wants to merge 1 commit intogoogle-github-actions:mainfrom
Sif-2:fix/issue-triage-query

Conversation

@Sif-2
Copy link
Copy Markdown

@Sif-2 Sif-2 commented Apr 25, 2026

Summary

The --search flag in the "Find untriaged issues" step of gemini-scheduled-triage.yml uses:

no:label label:"status/needs-triage"

GitHub interprets this as AND — an issue cannot simultaneously have no labels and carry the status/needs-triage label, so the query always returns zero results.

This PR switches to:

no:label OR label:"status/needs-triage"

so the step correctly finds issues that either have no labels or are explicitly marked for triage.

Fixes #499

Test plan

  • Verified that gh issue list --search 'no:label OR label:"status/needs-triage"' returns the expected union of unlabeled issues and triage-labeled issues

The `--search` flag in the "Find untriaged issues" step uses
`no:label label:"status/needs-triage"`, which GitHub interprets as
AND — an issue cannot simultaneously have no labels and carry the
`status/needs-triage` label, so the query always returns zero results.

Switch to `no:label OR label:"status/needs-triage"` so the step finds
issues that either have no labels or are explicitly marked for triage.

Fixes #499
@Sif-2 Sif-2 requested review from a team as code owners April 25, 2026 15:37
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 25, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Sif-2 Sif-2 closed this by deleting the head repository Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant