From 3556bfe1639e0cfad25f89cc721a6b61fe43c7ab Mon Sep 17 00:00:00 2001 From: Mestery Date: Sat, 27 Nov 2021 10:51:40 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Antoine du Hamel --- .github/workflows/auto-start-ci.yml | 8 ++++++-- .github/workflows/commit-queue.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index f697975b27ba7a..f2017d31711d5c 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -41,7 +41,11 @@ jobs: - name: Get Pull Requests and start CI run: | - prs=`gh pr list --repo ${{ github.repository }} --limit 100 --json number -q 'map(.number) | .[]'` - ./tools/actions/start-ci.sh $(echo $prs) + PRs=$(gh pr list \ + --repo ${{ github.repository }} \ + --label 'request-ci' \ + --json number --jq 'map(.number) | .[]' \ + --limit 100) + ./tools/actions/start-ci.sh "$PRs" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index 83a2c9b8962cc3..11a4bf328328e3 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -63,7 +63,11 @@ jobs: - name: Get Pull Requests and start the commit queue run: | - prs=`gh pr list --repo ${{ github.repository }} --base ${{ env.DEFAULT_BRANCH }} --limit 100 --json number -q 'map(.number) | .[]'` - ./tools/actions/commit-queue.sh ${OWNER} ${REPOSITORY} $(echo $prs) + PRs=$(gh pr list \ + --repo ${{ github.repository }} --base ${{ env.DEFAULT_BRANCH }} \ + --label 'commit-queue' \ + --json number --jq 'map(.number) | .[]' \ + --limit 100) + ./tools/actions/commit-queue.sh ${{ env.OWNER }} ${{ env.REPOSITORY }} "$PRs" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}