File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,16 @@ jobs:
130130
131131 # Analyze commits for conventional commit types
132132 HAS_BREAKING=false
133- HAS_FEAT =false
134- HAS_FIX =false
133+ HAS_MINOR =false
134+ HAS_PATCH =false
135135
136136 while IFS= read -r commit; do
137137 if echo "$commit" | grep -qE "^[a-f0-9]+ [a-z]+(\(.+\))?!:"; then
138138 HAS_BREAKING=true
139- elif echo "$commit" | grep -qE "^[a-f0-9]+ feat(\(.+\))?:"; then
140- HAS_FEAT =true
141- elif echo "$commit" | grep -qE "^[a-f0-9]+ fix(\(.+\))?:"; then
142- HAS_FIX =true
139+ elif echo "$commit" | grep -qE "^[a-f0-9]+ ( feat|refactor|perf|chore) (\(.+\))?:"; then
140+ HAS_MINOR =true
141+ elif echo "$commit" | grep -qE "^[a-f0-9]+ ( fix|docs|test|ci|style|build) (\(.+\))?:"; then
142+ HAS_PATCH =true
143143 fi
144144
145145 # Check commit body for BREAKING CHANGE
@@ -155,11 +155,11 @@ jobs:
155155 MINOR=0
156156 PATCH=0
157157 BUMP_TYPE="major"
158- elif [ "$HAS_FEAT " = true ]; then
158+ elif [ "$HAS_MINOR " = true ]; then
159159 MINOR=$((MINOR + 1))
160160 PATCH=0
161161 BUMP_TYPE="minor"
162- elif [ "$HAS_FIX " = true ]; then
162+ elif [ "$HAS_PATCH " = true ]; then
163163 PATCH=$((PATCH + 1))
164164 BUMP_TYPE="patch"
165165 else
You can’t perform that action at this time.
0 commit comments