From 4ab2dffa614cd06fb6eeef053fc2d6621b54aeb9 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 20 Jun 2026 23:12:15 +0200 Subject: [PATCH] fix(ci): check out PR branch for mention bot so commits land on the PR --- .github/workflows/claude-bot.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/claude-bot.yml b/.github/workflows/claude-bot.yml index 83d90f445..a544ab828 100644 --- a/.github/workflows/claude-bot.yml +++ b/.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 }}