pr-check: Fix COMMIT_COUNT command substitution

This commit is contained in:
bbhtt
2025-12-24 18:24:42 +05:30
parent 460bc25fac
commit f3d01f3123
+1 -1
View File
@@ -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)