From faa652dce796d171a80bbe7f3fd5564420cca0f0 Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Tue, 13 Jan 2026 18:44:23 -0300 Subject: [PATCH] fix: add pull_request trigger alongside pull_request_target Add both pull_request and pull_request_target triggers to support: - pull_request: Same-repo PRs (works immediately with changed workflow) - pull_request_target: Fork PRs (provides OIDC tokens) This resolves the chicken-and-egg problem where pull_request_target uses the base branch's workflow file, preventing the workflow from running when the workflow file itself is changed in the PR. --- .github/workflows/claude-code-review.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 743483e..f46ed0a 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -1,6 +1,8 @@ name: Claude Code Review on: + pull_request: + types: [opened, synchronize, ready_for_review, reopened] pull_request_target: types: [opened, synchronize, ready_for_review, reopened] # Optional: Only run on specific file changes