Commit 8094fa3
committed
fix: serialize preview-dispatch per PR to preserve event order
A PR's events fire as independent workflow runs, so a push (synchronize) and a
close could be dispatched out of order. The cloud handler's concurrency
collapses by branch but can't fix arrival order — an update reaching it while a
destroy is in-flight cancels the destroy and leaks the preview. Add a per-PR
concurrency group (cancel-in-progress: false) so events dispatch in order; the
flow is one short API call, so queuing is cheap.
Addresses the Devin review note on overlapping dispatches.1 parent 85a039f commit 8094fa3
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
0 commit comments