소스 검색

fix(ci): check out PR branch for mention bot so commits land on the PR

MHSanaei 18 시간 전
부모
커밋
4ab2dffa61
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      .github/workflows/claude-bot.yml

+ 5 - 0
.github/workflows/claude-bot.yml

@@ -419,6 +419,11 @@ jobs:
       - uses: actions/checkout@v7
         with:
           fetch-depth: 0
+      - name: Check out the PR branch when the comment is on a pull request
+        if: github.event.issue.pull_request
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: gh pr checkout ${{ github.event.issue.number }}
       - uses: anthropics/claude-code-action@v1
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}