From 9344a06d9c8e1beccf6876ba375e648d259d0888 Mon Sep 17 00:00:00 2001 From: Xuguang Mei Date: Mon, 21 Mar 2022 12:33:11 +0800 Subject: [PATCH] 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 Reviewed-By: Michael Dawson Reviewed-By: Mestery --- tools/actions/commit-queue.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/actions/commit-queue.sh b/tools/actions/commit-queue.sh index 16fbc7f2ef15fb..309c1c5406b334 100755 --- a/tools/actions/commit-queue.sh +++ b/tools/actions/commit-queue.sh @@ -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