fix(ci): tighten minor_pattern regex in auto-versioning
The previous pattern '/(feat|feat\\()/)' was too broad and could match any commit containing 'feat' substring (like 'defeat', 'feature'). Changed to '/^feat(\\(.+\\))?:/' which properly matches only Conventional Commits format: 'feat:' or 'feat(scope):'
This commit is contained in:
2
.github/workflows/auto-versioning.yml
vendored
2
.github/workflows/auto-versioning.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
major_pattern: "/__MANUAL_MAJOR_BUMP_ONLY__/"
|
||||
# Regex pattern for minor version bump (new features)
|
||||
# Matches: "feat:" prefix in commit messages (Conventional Commits)
|
||||
minor_pattern: "/(feat|feat\\()/"
|
||||
minor_pattern: "/^feat(\\(.+\\))?:/"
|
||||
# Patch bumps: All other commits (fix:, chore:, etc.) are treated as patches by default
|
||||
# Pattern to determine formatting
|
||||
version_format: "${major}.${minor}.${patch}"
|
||||
|
||||
Reference in New Issue
Block a user