mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-01 04:50:01 +00:00
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.
This commit is contained in:
parent
9ce3cf55fc
commit
faa652dce7
1 changed files with 2 additions and 0 deletions
2
.github/workflows/claude-code-review.yml
vendored
2
.github/workflows/claude-code-review.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue