Skip to content

Commit 20fbbde

Browse files
fix(ci): align commit analysis regex with timetraq-backend pattern
- Use grep -E with correct escaping for major detection (BREAKING CHANGE|feat(...)?!:) - Use proper regex for minor detection (^feat(...)?:) matching both feat: and feat(scope):
1 parent c810e39 commit 20fbbde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
COMMITS=$(git log "$PREVIOUS_TAG..HEAD" --format=%B --no-decorate 2>/dev/null || echo "")
4343
4444
BUMP="patch"
45-
if echo "$COMMITS" | grep -q -i "BREAKING CHANGE\|^.*\!:"; then
45+
if echo "$COMMITS" | grep -qE "BREAKING CHANGE|feat(\(.*\))?!:"; then
4646
BUMP="major"
47-
elif echo "$COMMITS" | grep -q -E "^feat"; then
47+
elif echo "$COMMITS" | grep -qE "^feat(\(.*\))?:"; then
4848
BUMP="minor"
4949
fi
5050

0 commit comments

Comments
 (0)