Skip to content

Commit 653b18e

Browse files
committed
update categorisation
1 parent fdb777d commit 653b18e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/rust-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ jobs:
131131
132132
# Analyze commits for conventional commit types
133133
HAS_BREAKING=false
134-
HAS_FEAT=false
135-
HAS_FIX=false
134+
HAS_MINOR=false
135+
HAS_PATCH=false
136136
137137
while IFS= read -r commit; do
138138
if echo "$commit" | grep -qE "^[a-f0-9]+ [a-z]+(\(.+\))?!:"; then
139139
HAS_BREAKING=true
140-
elif echo "$commit" | grep -qE "^[a-f0-9]+ feat(\(.+\))?:"; then
141-
HAS_FEAT=true
142-
elif echo "$commit" | grep -qE "^[a-f0-9]+ fix(\(.+\))?:"; then
143-
HAS_FIX=true
140+
elif echo "$commit" | grep -qE "^[a-f0-9]+ (feat|refactor|perf|chore)(\(.+\))?:"; then
141+
HAS_MINOR=true
142+
elif echo "$commit" | grep -qE "^[a-f0-9]+ (fix|docs|test|ci|style|build)(\(.+\))?:"; then
143+
HAS_PATCH=true
144144
fi
145145
146146
# Check commit body for BREAKING CHANGE
@@ -156,11 +156,11 @@ jobs:
156156
MINOR=0
157157
PATCH=0
158158
BUMP_TYPE="major"
159-
elif [ "$HAS_FEAT" = true ]; then
159+
elif [ "$HAS_MINOR" = true ]; then
160160
MINOR=$((MINOR + 1))
161161
PATCH=0
162162
BUMP_TYPE="minor"
163-
elif [ "$HAS_FIX" = true ]; then
163+
elif [ "$HAS_PATCH" = true ]; then
164164
PATCH=$((PATCH + 1))
165165
BUMP_TYPE="patch"
166166
else

0 commit comments

Comments
 (0)