summaryrefslogtreecommitdiff
path: root/tools/changelog.sh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-07 19:53:11 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-07 20:58:12 +0100
commit92fa8153d5e7e2e0d317f766f608e2062c76b390 (patch)
tree4d457b0ef5c425bd4091187d0b7a0954273e500a /tools/changelog.sh
parent5a888ff4ac58798ccdff0f32c4609fd153edc217 (diff)
downloadzsh-92fa8153d5e7e2e0d317f766f608e2062c76b390.tar.gz
zsh-92fa8153d5e7e2e0d317f766f608e2062c76b390.tar.bz2
zsh-92fa8153d5e7e2e0d317f766f608e2062c76b390.zip
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.
Diffstat (limited to 'tools/changelog.sh')
-rwxr-xr-xtools/changelog.sh24
1 files 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