Commit fc22758
authored
fix(ci): skip pending-maintainer label writes on fork PR review events (#1442)
pull_request_review runs triggered by fork PRs get a read-only
GITHUB_TOKEN, so the label add/remove calls fail with 403
"Resource not accessible by integration" (e.g. every review
submitted on #1440).
Guard the job: only handle pull_request_review when the PR head
repo is this repo. Fork PR labels stay eventually-consistent via
the hourly schedule / workflow_dispatch reconciliation, which runs
with a full token.
Co-authored-by: chaodu-agent <chaodu-agent@users.noreply.github.com>1 parent 6859733 commit fc22758
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
0 commit comments