mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-10 10:04:18 +00:00
feat!: Change default version patterns to follow Conventional Commits
This commit is contained in:
parent
305899e7da
commit
bdf7908364
6 changed files with 38 additions and 36 deletions
|
|
@ -13,11 +13,11 @@ class ActionConfig {
|
|||
/** If true, the branch will be used to select the maximum version. */
|
||||
this.versionFromBranch = false;
|
||||
/** A string which, if present in a git commit, indicates that a change represents a major (breaking) change. Wrap with '/' to match using a regular expression. */
|
||||
this.majorPattern = "(MAJOR)";
|
||||
this.majorPattern = "/!:|BREAKING CHANGE:/";
|
||||
/** A string which indicates the flags used by the `majorPattern` regular expression. */
|
||||
this.majorFlags = "";
|
||||
/** 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. */
|
||||
this.minorPattern = "(MINOR)";
|
||||
this.minorPattern = "/feat:/";
|
||||
/** A string which indicates the flags used by the `minorPattern` regular expression. */
|
||||
this.minorFlags = "";
|
||||
/** Pattern to use when formatting output version */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue