Commit 66bb541
committed
Gate copilot-review on same-repo PRs, not author_association
The pull_request_target event payload reports author_association as
CONTRIBUTOR for org members on same-repo branches (confirmed via the
debug-event job added in #1592 and fired by #1593), so the previous
gate filtered out every maintainer PR.
Switch to head.repo.full_name == base.repo.full_name. Same-repo PRs
require push access to the base repo, which is the maintainer signal
we actually want. Fork PRs (where the maintainer cannot push to base)
remain excluded.
Also removes the now-unneeded debug-event job.1 parent b50e7f5 commit 66bb541
1 file changed
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
24 | 15 | | |
25 | 16 | | |
26 | | - | |
| 17 | + | |
27 | 18 | | |
28 | 19 | | |
29 | 20 | | |
| |||
0 commit comments