mirror of https://github.com/nodejs/node.git
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:
parent
69f8794cbe
commit
7bcc250799
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue