diff options
Diffstat (limited to 'tools/changelog.sh')
-rwxr-xr-x | tools/changelog.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/changelog.sh b/tools/changelog.sh index 8753212e9..836afef14 100755 --- a/tools/changelog.sh +++ b/tools/changelog.sh @@ -91,6 +91,8 @@ function parse-commit { if [[ "$body" =~ "BREAKING CHANGE: (.*)" || \ "$subject" =~ '^[^ :\)]+\)?!: (.*)$' ]]; then message="${match[1]}" + # remove CR characters (might be inserted in GitHub UI commit description form) + message="${message//$'\r'/}" # skip next paragraphs (separated by two newlines or more) message="${message%%$'\n\n'*}" # ... and replace newlines with spaces @@ -284,7 +286,7 @@ function display-release { local hash subject for hash message in ${(kv)breaking}; do - echo " - $(fmt:hash) $(fmt:subject "${message}")" + echo " - $(fmt:hash) $(fmt:scope)$(fmt:subject "${message}")" done | sort echo } |