From b1250e9edb6a6627fbe3e0d16d4617dca689f830 Mon Sep 17 00:00:00 2001 From: james-haytko_nwx Date: Wed, 18 Feb 2026 13:04:52 -0600 Subject: [PATCH 1/2] Fix checkout to support fork PRs using SHA instead of branch ref - Changed from using head.ref to head.sha - Fixes issue where fork PR branches don't exist in base repo - Works for both fork and branch PRs Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/claude-documentation-reviewer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-documentation-reviewer.yml b/.github/workflows/claude-documentation-reviewer.yml index e0321956f1..4e3bbc359d 100644 --- a/.github/workflows/claude-documentation-reviewer.yml +++ b/.github/workflows/claude-documentation-reviewer.yml @@ -23,8 +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 }} + # Use SHA to support both fork and branch PRs + ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # Need full history to compare with base branch - name: Get changed markdown files From 7d6b9ac1ac2de596c69629d7b3c60470c6cfded9 Mon Sep 17 00:00:00 2001 From: james-haytko_nwx Date: Wed, 18 Feb 2026 13:50:54 -0600 Subject: [PATCH 2/2] doc-review-fix --- .github/workflows/claude-documentation-reviewer.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude-documentation-reviewer.yml b/.github/workflows/claude-documentation-reviewer.yml index 4e3bbc359d..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: - # Use SHA to support both fork and branch PRs ref: ${{ github.event.pull_request.head.sha || github.sha }} - fetch-depth: 0 # Need full history to compare with base branch + fetch-depth: 0 - name: Get changed markdown files id: changed-files