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/node#40330

PR-URL: nodejs/node#42377
Fixes: nodejs/node#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 guangwong committed Oct 10, 2022
1 parent ba5319d commit 1dd4fc9
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 1dd4fc9

Please sign in to comment.