From 4122a8dd18352f098647106c628a49d2e50cb6ed 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