feat!: Change default version patterns to follow Conventional Commits

This commit is contained in:
Paul Hatcherian 2025-07-19 07:50:19 +02:00
parent 305899e7da
commit bdf7908364
6 changed files with 38 additions and 36 deletions

View file

@ -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 */