Commit 01bcdff
authored
Use reusable Claude Code workflow from test-infra (#3788)
## Summary
Replaces the inline Claude Code workflow with the centralized reusable
workflow from `pytorch/test-infra`.
### What changes
- Drops the hardcoded pilot user allowlist (20 users) in favor of
`author_association` checks + API-level write access verification
- Removes `pull_request_review_comment` trigger (security fix, per
pytorch/pytorch#176652)
- Passes lintrunner install via `setup_script` input (preserving the
existing setup)
### What stays the same
- Same security model (org gate, write access check, bot allowlist)
- Same lintrunner setup (`pip install lintrunner==0.12.5 && lintrunner
init`)
- Same model, settings, and usage metrics upload
Depends on pytorch/test-infra#7810 which added
the reusable workflow.
## Test plan
- [x] Reusable workflow tested end-to-end on pytorch/ciforge
- [ ] Verify `@claude` triggers correctly after merge1 parent f380781 commit 01bcdff
1 file changed
Lines changed: 6 additions & 73 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 11 | + | |
49 | 12 | | |
50 | 13 | | |
51 | 14 | | |
52 | 15 | | |
53 | 16 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments