Repository navigation
Commit 9e396cf
Diff stable release notes against the last stable tag, not the last rc (#598)
goreleaser's github-native changelog asks GitHub to generate notes relative
to the previous tag, and goreleaser resolves that to whatever tag came last —
for v0.8.0 that is v0.8.0-rc.3, which yields an empty five-line body while
every real change stays stranded across the rc tags.
Resolve the previous *stable* tag ourselves and hand it over via
GORELEASER_PREVIOUS_TAG. The selector mirrors the idiom already used in
update-nix-flake.sh:32, plus a guard against the current tag, which is itself
stable and sorts first.
Prereleases keep goreleaser's own detection, so rc notes still diff against
the preceding rc.
goreleaser#2764 asked for this natively and was closed wontfix, so the
environment variable is the sanctioned route. git.ignore_tags is not an
option: it would suppress rc tags as *current* too, breaking rc releases.
Co-authored-by: Jeremy Daer <jeremykemper@mac.com>1 parent 7aefeaf commit 9e396cf
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
241 | 256 | | |
242 | 257 | | |
243 | 258 | | |
| |||
0 commit comments