Skip to content

Commit 4122a8d

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 <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 208a5ea commit 4122a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/actions/commit-queue.sh

Lines changed: 1 addition & 1 deletion
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)