Commit aad8c3d
committed
Allowlist greenlight bot in reviewer action
- Add allowed_bots: pytorchgreenlight[bot] to the claude-code-action step
- Import TARGET_REPO into dispatch.py
- Name the reviewed repo (pytorch/pytorch#N) in dispatch log + error
Notes:
The scan dispatches greenlight-pr-review.yml as the pytorchgreenlight App
bot; claude-code-action blocks bot-triggered runs unless the login is
allowlisted, so the review agent was being silently skipped. Scope to our
own bot rather than "*" so no other external App can trigger reviews on
this public repo. The dispatch messages previously only showed the
dispatch repo/ref; adding TARGET_REPO disambiguates where the workflow
runs (pytorch/test-infra) from which PR it reviews (pytorch/pytorch).
Signed-off-by: Jean Schmidt <contato@jschmidt.me>1 parent 00e6ca2 commit aad8c3d
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
0 commit comments