summaryrefslogtreecommitdiff
path: root/tools/changelog.sh
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-10-07 13:35:07 +0200
committerMarc Cornellà <hello@mcornella.com>2021-10-07 13:35:07 +0200
commit607d2f1eda6f7a8a8036a6608e99c512db75c602 (patch)
treeb458a58fe5692fb2048e117560b4cd8e40e0ff87 /tools/changelog.sh
parentf0bbef1a070b7b00a36010c44af3c88807c73e6f (diff)
downloadzsh-607d2f1eda6f7a8a8036a6608e99c512db75c602.tar.gz
zsh-607d2f1eda6f7a8a8036a6608e99c512db75c602.tar.bz2
zsh-607d2f1eda6f7a8a8036a6608e99c512db75c602.zip
Revert "fix(changelog): don't parse commits of ignored types"
This reverts commit 63b7e5767d551b1d839888a7216f2bed01e8eb1f.
Diffstat (limited to 'tools/changelog.sh')
-rwxr-xr-xtools/changelog.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/changelog.sh b/tools/changelog.sh
index 71caa2b6c..7329a9526 100755
--- a/tools/changelog.sh
+++ b/tools/changelog.sh
@@ -120,7 +120,7 @@ function parse-commit {
fi
# Parse commit with hash $1
- local hash="$1" subject body type warning rhash
+ local hash="$1" subject body warning rhash
subject="$(command git show -s --format=%s $hash)"
body="$(command git show -s --format=%b $hash)"
@@ -132,12 +132,8 @@ function parse-commit {
# commit body
# [BREAKING CHANGE: warning]
- # if commit type is not going to be displayed, do nothing else
- type="$(commit:type "$subject")"
- (( ${MAIN_TYPES[(Ie)$type]} || ${OTHER_TYPES[(Ie)$type]} )) || return
-
# commits holds the commit type
- commits[$hash]="$type"
+ commits[$hash]="$(commit:type "$subject")"
# scopes holds the commit scope
scopes[$hash]="$(commit:scope "$subject")"
# subjects holds the commit subject