Skip to content

Commit

Permalink
tools: fix skip PR if CI is still running
Browse files Browse the repository at this point in the history
resolve: nodejs#40330

PR-URL: nodejs#42377
Fixes: nodejs#40330
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Mestery <[email protected]>
  • Loading branch information
meixg authored and xtx1130 committed Apr 25, 2022
1 parent 080d42f commit 5fa82c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/actions/commit-queue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for pr in "$@"; do
fi

# Skip PR if CI is still running
if ncu-ci url "https://github.com/${OWNER}/${REPOSITORY}/pull/${pr}" 2>&1 | grep "^Result *PENDING"; then
if gh pr checks "$pr" | grep -q "\spending\s"; then
echo "pr ${pr} skipped, CI still running"
continue
fi
Expand Down

0 comments on commit 5fa82c6

Please sign in to comment.