Commit 64e2e6a
[no-ci] Trust any collaborator in restricted-paths guard (#2010)
* Trust any collaborator in restricted-paths guard
Restricted-paths review is only meant for authors outside the collaborator
set, so read and triage access should count as trusted signals too.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Post PR comment when restricted-paths review is required
Make it easier to discover why Needs-Restricted-Paths-Review was applied by
posting a short PR comment with a link to the workflow run summary whenever
the label is newly added.
Co-authored-by: Cursor <cursoragent@cursor.com>
* TEMPORARY: Switch to pull_request trigger for testing
This commit is for testing the collaborator permission check and must be
reverted before merge:
1. Changes trigger from pull_request_target to pull_request so this
branch's workflow definition runs instead of main's.
2. Adds a dummy change to cuda_bindings/pyproject.toml to trigger the
restricted-paths detection.
REVERT THIS COMMIT BEFORE MERGE.
Made-with: Cursor
* TEMPORARY: Exclude write permission from trusted collaborators
This commit is for testing the label-and-comment path and must be reverted
before merge. It temporarily treats write access as untrusted so the current
PR will exercise Needs-Restricted-Paths-Review assignment again.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Revert "TEMPORARY: Exclude write permission from trusted collaborators"
This reverts commit 31ddac2.
* Revert "TEMPORARY: Switch to pull_request trigger for testing"
This reverts commit 9b2fcd8.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 2849053 commit 64e2e6a
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
149 | 166 | | |
150 | 167 | | |
151 | 168 | | |
152 | | - | |
| 169 | + | |
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
156 | 173 | | |
157 | 174 | | |
158 | | - | |
| 175 | + | |
159 | 176 | | |
160 | 177 | | |
161 | 178 | | |
| |||
189 | 206 | | |
190 | 207 | | |
191 | 208 | | |
| 209 | + | |
192 | 210 | | |
193 | 211 | | |
194 | 212 | | |
| |||
203 | 221 | | |
204 | 222 | | |
205 | 223 | | |
| 224 | + | |
206 | 225 | | |
207 | 226 | | |
208 | 227 | | |
| |||
0 commit comments