Skip to content

Commit 17770be

Browse files
meixgjuanarbol
authored andcommitted
tools: fix skip PR if CI is still running
resolve: #40330 PR-URL: #42377 Fixes: #40330 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent f39d740 commit 17770be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/actions/commit-queue.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for pr in "$@"; do
4040
fi
4141

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

0 commit comments

Comments
 (0)