Commit 9b8e69c
authored
feat: explicit promotion callout in PR check comment (#113)
Follow-up from [#110](#110
comment looking identical to an ordinary feature PR's. A promotion PR is
the highest-stakes merge in the channel flow — it ends the cycle,
consolidates the changelog, and ships to `@latest` — so the comment now
says so.
**Detection:** stable-targeted PR (no channel match on the base)
carrying bump files with `channel` set. Covers the canonical `next` →
`main` PR and partial promotions from branches cut off a channel.
Channel-targeted PRs keep their existing banner.
**Headline** becomes:
> **This PR promotes the `next` prerelease cycle to a stable release.**
The changes below that already shipped to the `@next` dist-tag will be
consolidated into the next stable version bump.
**File list** annotates shipped files, so mixed PRs (shipped cycle +
never-rc'd fixes) read at a glance:
> - `next/prerelease-channels.md` _(shipped on `@next`)_
> - `ci-check-channel-bump-files.md`
The shipped annotation also appears on graduation PRs (e.g.
`.bumpy/alpha/` files on a beta-targeted PR), where it's equally
accurate.
297 tests pass. Once merged, #110's comment should update itself with
the promotion callout (next moves forward → synchronize → check-local
rebuilds).1 parent 0175938 commit 9b8e69c
3 files changed
Lines changed: 64 additions & 8 deletions
File tree
- .bumpy
- packages/bumpy
- src/commands
- test/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
1024 | 1026 | | |
1025 | 1027 | | |
1026 | 1028 | | |
| 1029 | + | |
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
| |||
1032 | 1035 | | |
1033 | 1036 | | |
1034 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1035 | 1043 | | |
1036 | 1044 | | |
1037 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1038 | 1049 | | |
1039 | 1050 | | |
1040 | 1051 | | |
| |||
1082 | 1093 | | |
1083 | 1094 | | |
1084 | 1095 | | |
| 1096 | + | |
1085 | 1097 | | |
1086 | 1098 | | |
1087 | 1099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
55 | 71 | | |
56 | | - | |
57 | | - | |
| 72 | + | |
| 73 | + | |
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
64 | 103 | | |
0 commit comments