From f3d01f312368b0154fbfef9ddcc110e13372ae65 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Wed, 24 Dec 2025 18:24:42 +0530 Subject: [PATCH] pr-check: Fix COMMIT_COUNT command substitution --- .github/workflows/pr-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index acc1c36..789f175 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -132,7 +132,7 @@ jobs: PR_FILES=$(gh pr view "$PR_NUM" --json files --jq '.files[].path') - COMMIT_COUNT="(gh api repos/$GH_REPO/pulls/$PR_NUM --jq '.commits' 2>/dev/null)" + COMMIT_COUNT="$(gh api repos/$GH_REPO/pulls/$PR_NUM --jq '.commits' 2>/dev/null)" CONTAINS_MASTER=$(gh api repos/$GH_REPO/pulls/$PR_NUM/commits --jq '.[1] | (.commit.author.email == "mclasen@redhat.com" and .commit.message == "Add some instructions")' 2>/dev/null)