Browse Source

Revert "fix(changelog): don't parse commits of ignored types"

This reverts commit 63b7e5767d551b1d839888a7216f2bed01e8eb1f.
Marc Cornellà 2 years ago
parent
commit
607d2f1eda
1 changed files with 2 additions and 6 deletions
  1. 2 6
      tools/changelog.sh

+ 2 - 6
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