Skip to content

Commit

Permalink
tools: make commit-queue check blocked label
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Nov 8, 2024
1 parent 6af5c4e commit c49aeae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/commit-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ 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")" \
-t '{{ range . }}{{ .number }} {{ end }}' \
Expand Down
1 change: 1 addition & 0 deletions tools/actions/commit-queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ git config --local user.name "Node.js GitHub Bot"

for pr in "$@"; do
gh pr view "$pr" --json labels --jq ".labels" > labels.json

# Skip PR if CI was requested
if jq -e 'map(.name) | index("request-ci")' < labels.json; then
echo "pr ${pr} skipped, waiting for CI to start"
Expand Down

0 comments on commit c49aeae

Please sign in to comment.