Repository navigation
Commit 67ae53e
committed
fix(ci): restore pull_request_target trigger for PR gate
The Blacksmith migration (#1249) changed the PR Gate trigger from
`pull_request_target` to `pull_request`. For PRs opened by outside
contributors, `pull_request` workflows are gated as `action_required`
and do not run without a maintainer manually approving them, so the
auto-close gate silently stopped firing (e.g. #1281 stayed open).
Restore `pull_request_target` so the gate runs with the base repo's
write permissions and can close unapproved PRs automatically. This
workflow never checks out PR code — it only calls the GitHub API via
github-script — so the usual pull_request_target injection risk does
not apply. Added an inline comment documenting the requirement to
prevent the same regression in future workflow edits.1 parent f28fa45 commit 67ae53e
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | | - | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments