Commit ec8cb08
authored
Skip workflow_run events that are awaiting approval (#8028)
- `handleWorkflowRunEvent` (added in #7958, refined in #7970) listens to
`workflow_run.requested`, which GitHub fires as soon as it creates the run record — including runs in `waiting` / `action_required` state on first-time-contributor PRs.
- The handler never checked status, so it would mint ciflow tags off the *request* event, defeating the approval deferral that #7958 was built for.
- Bail out early when `workflow_run.status` is `waiting` or `action_required`. Approved runs transition out of those states before subsequent `workflow_run` events, so legitimate post-approval triggers (and the `.completed` path) still work.1 parent e04f082 commit ec8cb08
2 files changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
300 | 309 | | |
301 | 310 | | |
302 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
521 | 553 | | |
522 | 554 | | |
523 | 555 | | |
| |||
0 commit comments