Commit 86df148
committed
fix: fetch live assignees before removal; isolate concurrency per reviewer
- In removeReviewerFromAssignees, replace the stale event-payload
assignee snapshot with a live pulls.get call so a concurrent
review_requested run that adds the assignee after the event fires
does not cause the reviewer to remain assigned permanently
- Give pull_request_review runs a reviewer-scoped concurrency key
(reviewer-removal-{PR}-{login}) so concurrent review submissions
from different reviewers are not cancelled by each other
- Update removal-flow tests to populate state.currentPrData.assignees
so the mock pulls.get returns the correct live assignee list; fix
error-path mocks to return { data: { assignees: [...] } }
Signed-off-by: Mounil Kanakhara <mounilkankhara@gmail.com>1 parent 3a07014 commit 86df148
2 files changed
Lines changed: 10 additions & 3 deletions
File tree
- .github/scripts
- __tests__/jest
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| 269 | + | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
299 | | - | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
319 | 322 | | |
320 | 323 | | |
321 | 324 | | |
322 | | - | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
0 commit comments