92fa8153d5e7e2e0d317f766f608e2062c76b390

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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.

Diff

 1diff --git a/tools/changelog.sh b/tools/changelog.sh
 2index 55b86f923789023f72170137f55bba3c77472ac9..4ce42e5a3745597dc83a7170ed9efd48173cd2f1 100755
 3--- a/tools/changelog.sh
 4+++ b/tools/changelog.sh
 5@@ -8,16 +8,16 @@
 6 #* and the display string of such type
 7 local -A TYPES
 8 TYPES=(
 9-  [build]="Build system"
10-  [chore]="Chore"
11-  [ci]="CI"
12-  [docs]="Documentation"
13-  [feat]="Features"
14-  [fix]="Bug fixes"
15-  [perf]="Performance"
16-  [refactor]="Refactor"
17-  [style]="Style"
18-  [test]="Testing"
19+  build     "Build system"
20+  chore     "Chore"
21+  ci        "CI"
22+  docs      "Documentation"
23+  feat      "Features"
24+  fix       "Bug fixes"
25+  perf      "Performance"
26+  refactor  "Refactor"
27+  style     "Style"
28+  test      "Testing"
29 )
30 
31 #* Types that will be displayed in their own section,
32@@ -274,8 +274,8 @@ function display-release {
33     (( $#breaking != 0 )) || return 0
34 
35     case "$output" in
36-    raw) display:type-header "BREAKING CHANGES" ;;
37-    text|md) display:type-header "⚠ BREAKING CHANGES" ;;
38+    raw) fmt:header "BREAKING CHANGES" 3 ;;
39+    text|md) fmt:header "⚠ BREAKING CHANGES" 3 ;;
40     esac
41 
42     local hash subject