Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ TAG="${1-}"
REF="${2-}"
[ -n "$TAG" ] || die "no tag given; usage: scripts/release-notes.sh <tag> [<ref>]"

# The tag shape picks the namespace. The 2.x line is tagged bare (2.1.0) and the
# 1.7 maintenance line keeps its v prefix (v1.7.27), so each line resolves its
# previous tag among its own tags and never crosses into the other one.
# The tag shape picks the namespace. A repository may tag bare (2.1.0) or with
# a v prefix (v1.7.27), and a repository that runs both lines resolves each
# tag's previous tag among tags of its own shape, never crossing into the other.
case "$TAG" in
v[0-9]*) MATCH='v*' EXCLUDE='v*-*' ;;
[0-9]*) MATCH='[0-9]*' EXCLUDE='[0-9]*-*' ;;
Expand Down
5 changes: 4 additions & 1 deletion scripts/release-notes.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ EOF
commit "feat: add the builder (#7)"
git tag 1.1.0-rc1

sed -i 's/^## \[1\.1\.0\] - unreleased$/## [1.1.0] - 2026-02-01/' CHANGELOG.md
# A temp-file rewrite rather than sed -i, whose in-place flag differs between
# GNU and BSD sed.
sed 's/^## \[1\.1\.0\] - unreleased$/## [1.1.0] - 2026-02-01/' CHANGELOG.md >CHANGELOG.md.new
mv CHANGELOG.md.new CHANGELOG.md
commit "chore(release): 1.1.0"
git tag 1.1.0

Expand Down