Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Handle all PR event types in Claude workflow

Manav Rathi5ac0284f22f9
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
index 3113184914..f646a88317 100644
--- a/.github/workflows/claude.yml
+++ b/.github/workflows/claude.yml
@@ -42,11 +42,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- # For PR comments, fetch and checkout the PR branch properly
+ # For PR-related events, fetch and checkout the PR branch properly
- name: Fetch PR branch
- if: ${{ github.event.issue.pull_request }}
+ if: ${{ github.event.issue.pull_request || github.event.pull_request }}
run: |
- gh pr checkout ${{ github.event.issue.number }}
+ # For issue_comment events on PRs
+ if [[ -n "${{ github.event.issue.pull_request }}" ]]; then
+ gh pr checkout ${{ github.event.issue.number }}
+ # For pull_request_review and pull_request_review_comment events
+ elif [[ -n "${{ github.event.pull_request.number }}" ]]; then
+ gh pr checkout ${{ github.event.pull_request.number }}
+ fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}