From 92fa8153d5e7e2e0d317f766f608e2062c76b390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 7 Dec 2020 19:53:11 +0100 Subject: [PATCH] fix(changelog): fix assoc array syntax for zsh 5.4.2 and older (#9495) Also fixed a call to a defunct display:type-header function in displaying breaking changes. --- tools/changelog.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/changelog.sh b/tools/changelog.sh index 55b86f923..4ce42e5a3 100755 --- a/tools/changelog.sh +++ b/tools/changelog.sh @@ -8,16 +8,16 @@ #* and the display string of such type local -A TYPES TYPES=( - [build]="Build system" - [chore]="Chore" - [ci]="CI" - [docs]="Documentation" - [feat]="Features" - [fix]="Bug fixes" - [perf]="Performance" - [refactor]="Refactor" - [style]="Style" - [test]="Testing" + build "Build system" + chore "Chore" + ci "CI" + docs "Documentation" + feat "Features" + fix "Bug fixes" + perf "Performance" + refactor "Refactor" + style "Style" + test "Testing" ) #* Types that will be displayed in their own section, @@ -274,8 +274,8 @@ function display-release { (( $#breaking != 0 )) || return 0 case "$output" in - raw) display:type-header "BREAKING CHANGES" ;; - text|md) display:type-header "⚠ BREAKING CHANGES" ;; + raw) fmt:header "BREAKING CHANGES" 3 ;; + text|md) fmt:header "⚠ BREAKING CHANGES" 3 ;; esac local hash subject