mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
tools: fix skip PR if CI is still running
resolve: https://github.com/nodejs/node/issues/40330 PR-URL: https://github.com/nodejs/node/pull/42377 Fixes: https://github.com/nodejs/node/issues/40330 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
1 parent
f39d740c76
commit
9344a06d9c
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user