Skip to content

Commit 5ee32f8

Browse files
committed
Fix Claude fix CI workflow checking for attempts count
1 parent 0f994d4 commit 5ee32f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/claude-fix-pr-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
id: check-attempts
4646
env:
4747
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
48-
HEAD_BRANCH: ${{ github.head_ref }}
48+
PR_NUMBER: ${{ github.event.pull_request.number }}
4949
run: |
50-
COMMITS=$(gh api "repos/${{ github.repository }}/commits?sha=$HEAD_BRANCH&per_page=50" \
50+
COMMITS=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/commits?per_page=100" \
5151
--jq '[.[] | select(.commit.message | test("\\[claude-ci-fix\\]"))] | length')
5252
5353
if [ "$COMMITS" -ge 2 ]; then

0 commit comments

Comments
 (0)