We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f994d4 commit 5ee32f8Copy full SHA for 5ee32f8
.github/workflows/claude-fix-pr-ci.yml
@@ -45,9 +45,9 @@ jobs:
45
id: check-attempts
46
env:
47
GH_TOKEN: ${{ secrets.PHPSTAN_BOT_TOKEN }}
48
- HEAD_BRANCH: ${{ github.head_ref }}
+ PR_NUMBER: ${{ github.event.pull_request.number }}
49
run: |
50
- COMMITS=$(gh api "repos/${{ github.repository }}/commits?sha=$HEAD_BRANCH&per_page=50" \
+ COMMITS=$(gh api "repos/${{ github.repository }}/pulls/$PR_NUMBER/commits?per_page=100" \
51
--jq '[.[] | select(.commit.message | test("\\[claude-ci-fix\\]"))] | length')
52
53
if [ "$COMMITS" -ge 2 ]; then
0 commit comments