mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-20 21:39:53 +00:00
feat: change minor pattern to support optional conventional commit scopes
The Conventional Commits spec allows optional scopes to be present after the change type, e.g. `feat(scope):`. The current minor pattern will only bump the minor version number if the pattern exactly matches `feat:`. This change is backwards compatible and adds support for these scopes.
This commit is contained in:
parent
7bf8143b3b
commit
67c95513f8
6 changed files with 21 additions and 7 deletions
|
|
@ -31,7 +31,7 @@ inputs:
|
|||
minor_pattern:
|
||||
description: "A string which, if present in a git commit, indicates that a change represents a minor (feature) change. Wrap with '/' to match using a regular expression."
|
||||
required: true
|
||||
default: "/feat:/"
|
||||
default: "/^feat(\\(.+\\))?:/"
|
||||
minor_regexp_flags:
|
||||
description: "A string which indicates the flags used by the `minor_pattern` regular expression. Supported flags: idgs"
|
||||
required: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue