From cffe4de5c6a0e5623c46d9186c7d7d82e13ce0d4 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Fri, 2 Oct 2026 17:42:18 +0100 Subject: [PATCH] ci: skip Claude review on back-merge PRs The release workflow's back-merge PR is opened by the release-please GitHub App, and claude-code-action refuses non-human actors, so the required claude-review check fails and blocks the merge (#197, #209). The PR only carries production code already reviewed through dev, so skip it like the release-please release PRs. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/claude-code-review.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 49c6bec..3f0740f 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -16,7 +16,11 @@ jobs: # - Dependabot / forks: no CLAUDE_CODE_OAUTH_TOKEN, so the action would fail. # - release-please release PRs: just version bumps + changelog — nothing to # review, and it must never block a release. - if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && !startsWith(github.head_ref, 'release-please--') }} + # - Back-merge PRs (production -> dev, opened by release-please.yml): only + # carry code already reviewed on its way through dev, and the action + # rejects their bot actor ("Workflow initiated by non-human actor"), + # which blocks the merge since claude-review is a required check. + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && !startsWith(github.head_ref, 'release-please--') && !startsWith(github.head_ref, 'chore/back-merge-') }} runs-on: ubuntu-latest permissions: contents: read