From 8871c164898a9dce51647a376111aaafc531ffb3 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 10 Nov 2024 15:59:05 +0000 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Beth Griggs Reviewed-By: LiviaMedeiros --- .github/workflows/commit-queue.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index f51ebe2540320f..0317e17e6605f4 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -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)