Commit a1bd0f5
authored
fix(changelog): make scheduled draft run idempotent instead of time-gated (#52)
The 9 AM Toronto wall-clock gate required the run to execute in a 1-hour
window, but GitHub's scheduler routinely delays cron triggers by 30-60+
minutes. Delayed runs landed outside the window and silently skipped, so
some Fridays produced no changelog at all.
Replace the time gate with an idempotency check: a scheduled run skips
only when a draft changelog PR is already open. Both Friday crons now act
as redundancy (whichever fires first does the work) and the job no longer
depends on wall-clock execution time.1 parent 7837ff0 commit a1bd0f5
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | | - | |
44 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | | - | |
| 57 | + | |
| 58 | + | |
47 | 59 | | |
48 | 60 | | |
49 | 61 | | |
| |||
0 commit comments