Commit 3c7fd33
authored
test(version): a changelog-only commit owes no changelog entry (#191)
The guard ate its own tail. A PR that adds a missing entry is itself a merged
PR with no entry, and so is the PR that adds THAT one. Three PRs into v0.9.0
before the regress was recognised as structural rather than one more edge case.
A commit that changed nothing but CHANGELOG.md has no change to describe — it
IS the description. Exempted, alongside the release cut, which is recognised as
before by touching CHANGELOG.md and version.go together.
The two rules are separate on purpose. The cut may carry other files and still
be a cut (v0.9.0's carried this very test), while changelog-only means exactly
that: one file, or the exemption does not apply. #189 changed only
version_test.go and owed an entry under both rules, which is the right answer.
Both exemptions mutation-checked: disabling either turns the test red, so
neither is defensive decoration.
Honest cost, recorded: this guard caught five genuinely missing entries in
v0.9.0 — including two user-visible fixes that would have shipped a release
page that never mentioned them — and its edges then cost three round trips.
Worth it, but not free, and the edges were all in the same place: commits whose
subject is the changelog itself.
Signed-off-by: jitokim <pigberger70@gmail.com>1 parent c1f0b23 commit 3c7fd33
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
191 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
192 | 201 | | |
193 | 202 | | |
194 | 203 | | |
195 | 204 | | |
196 | 205 | | |
197 | 206 | | |
| 207 | + | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
| |||
0 commit comments