diff --git a/.github/workflows/claude-documentation-reviewer.yml b/.github/workflows/claude-documentation-reviewer.yml index e0321956f1..fce2cb054a 100644 --- a/.github/workflows/claude-documentation-reviewer.yml +++ b/.github/workflows/claude-documentation-reviewer.yml @@ -1,7 +1,7 @@ name: Documentation Reviewer on: - pull_request: + pull_request_target: types: [opened, edited, reopened, synchronize] paths: - '**.md' @@ -23,9 +23,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - # Ensures the action checks out the PR branch instead of main - ref: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} - fetch-depth: 0 # Need full history to compare with base branch + ref: ${{ github.event.pull_request.head.sha || github.sha }} + fetch-depth: 0 - name: Get changed markdown files id: changed-files