summaryrefslogtreecommitdiff
path: root/tools/changelog.sh
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-09-07 17:13:46 +0200
committerMarc Cornellà <hello@mcornella.com>2021-09-07 17:13:46 +0200
commit37a60eebc107c08047d4b5716c1c1760104aa25d (patch)
tree47ef48ffe97b0af289d2aea162066a99a001fe48 /tools/changelog.sh
parentf341c8c20646bd82d5d84fae32f68b760e0f1be0 (diff)
downloadzsh-37a60eebc107c08047d4b5716c1c1760104aa25d.tar.gz
zsh-37a60eebc107c08047d4b5716c1c1760104aa25d.tar.bz2
zsh-37a60eebc107c08047d4b5716c1c1760104aa25d.zip
chore(changelog): fix first-letter uppercase in breaking change messages
Diffstat (limited to 'tools/changelog.sh')
-rwxr-xr-xtools/changelog.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/changelog.sh b/tools/changelog.sh
index 966e91c25..7329a9526 100755
--- a/tools/changelog.sh
+++ b/tools/changelog.sh
@@ -294,11 +294,12 @@ function display-release {
local hash message
local wrap_width=$(( (COLUMNS < 100 ? COLUMNS : 100) - 3 ))
for hash message in ${(kv)breaking}; do
- # Format the BREAKING CHANGE message by word-wrapping it at maximum 100 characters
- # (use $COLUMNS if smaller than 100), and adding a 3-space left padding.
- message="$(fmt -w $wrap_width <<< "$message" | sed 's/^/ /')"
- # Display hash and scope first, and then the full message with newline separators
- echo " - $(fmt:hash) $(fmt:scope)\n\n$(fmt:subject "$message")\n"
+ # Format the BREAKING CHANGE message by word-wrapping it at maximum 100
+ # characters (use $COLUMNS if smaller than 100)
+ message="$(fmt -w $wrap_width <<< "$message")"
+ # Display hash and scope in their own line, and then the full message with
+ # blank lines as separators and a 3-space left padding
+ echo " - $(fmt:hash) $(fmt:scope)\n\n$(fmt:subject "$message" | sed 's/^/ /')\n"
done
}