Commit 629fbae
ci: exempt Changesets pre-release (RC) mode from the no-major guard (#3342)
check-changeset-no-major.mjs scans every pending changeset (not the PR diff),
so a single `major` sitting on main reds the "Check Changeset" job on every
subsequent PR. During an RC window that major is intentional: in Changesets
pre-release mode a `major` only yields a `X.0.0-<tag>.N` pre-release, and
nothing final ships until `changeset pre exit`.
Detect `.changeset/pre.json` (mode: "pre") and stand the guard aside for the
duration, emitting the pending majors as `::notice::` annotations so the RC
curator can still eyeball them. The guard re-arms automatically once pre-mode
exits, so it keeps protecting the lockstep `fixed` group the rest of the time.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7607a7a commit 629fbae
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
82 | 91 | | |
83 | 92 | | |
84 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
85 | 114 | | |
86 | 115 | | |
87 | 116 | | |
| |||
0 commit comments