tools: fix exclude labels for commit-queue

The `gh` cli doesn't recognise `--no-label`. Instead exclude labels
via the `--search` flag.

Refs: https://github.com/nodejs/node/pull/55781#issuecomment-2466782441
Refs: https://github.com/cli/cli/discussions/4142
PR-URL: https://github.com/nodejs/node/pull/55809
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
This commit is contained in:
Richard Lau 2024-11-10 15:59:05 +00:00 committed by LiviaMedeiros
parent 69f8794cbe
commit 7bcc250799
No known key found for this signature in database
GPG Key ID: 691C0F6AF4A67582
1 changed files with 2 additions and 3 deletions

View File

@ -37,9 +37,8 @@ jobs:
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--no-label 'blocked' \
--json 'number' \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")" \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z") -label:blocked" \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
fast_track_prs=$(gh pr list \
@ -47,7 +46,7 @@ jobs:
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--label 'fast-track' \
--no-label 'blocked' \
--search "-label:blocked" \
--json 'number' \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)