From e71c2c074df74a1a0606ee2481117bd5ab9366dd Mon Sep 17 00:00:00 2001 From: Dom Light Date: Fri, 23 Jan 2026 09:55:54 +0000 Subject: [PATCH] fix: remove anchor --- action.yml | 2 +- guide.md | 2 +- readme.md | 2 +- src/ActionConfig.ts | 2 +- src/cli.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 56bcc9f..63a06c8 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/guide.md b/guide.md index a8808e5..ef1f39f 100644 --- a/guide.md +++ b/guide.md @@ -100,7 +100,7 @@ If your project contains multiple services which you wish to version independent | Value | Description | | --- | --- | | `tag_prefix` | The prefix to use for the tag. Defaults to `v`, generally you will use either `v` or an empty string. Note that the tag format is distinct from the version. Tags used for versioning must always follow the pattern `{tag_prefix}{major}.{minor}.{patch}` with and optional `-{namespace}` suffix. | -| `major_pattern` and `minor_pattern` | These strings are used to determine the type of version to create. If any commit message since matches the `major_pattern` the major version will be incremented, if it matches the `minor_pattern` the minor version will be incremented. If neither pattern matches, the patch version will be incremented. These can be specified either as strings or as regular expression by wrapping the expression in `/`. The defaults follow [Conventional Commits](https://www.conventionalcommits.org/): `/!:|BREAKING CHANGE:/` for major and `/^feat(\(.+\))?:/` for minor. | +| `major_pattern` and `minor_pattern` | These strings are used to determine the type of version to create. If any commit message since matches the `major_pattern` the major version will be incremented, if it matches the `minor_pattern` the minor version will be incremented. If neither pattern matches, the patch version will be incremented. These can be specified either as strings or as regular expression by wrapping the expression in `/`. The defaults follow [Conventional Commits](https://www.conventionalcommits.org/): `/!:|BREAKING CHANGE:/` for major and `/feat(\(.+\))?:/` for minor. | | `version_format` | A value such as `${major}.${minor}.${patch}-prerelease${increment}` that will be used to format the version value of the output, **formatting this value is the only effect of this input parameter!** It is not used for parsing or any other purpose. It is a convenient alternative to formatting the output in a subsequent step. | | `user_format_type` | Indicates the format of the `authors` output. Can be `json` or `yaml`. | | `enable_prerelease_mode` | If true, major changes to versions starting with 0 will result in a minor change, preventing ths initial version `1.0.0`` from being created automatically by someone checking in a commit with the major pattern. | diff --git a/readme.md b/readme.md index 377069b..bf9aa79 100644 --- a/readme.md +++ b/readme.md @@ -85,7 +85,7 @@ it will be given the new version if the build were to be retriggered, for exampl # A string which indicates the flags used by the `major_pattern` regular expression. Supported flags: idgs major_regexp_flags: "" # Same as above except indicating a minor change, supports regular expressions wrapped with '/' - minor_pattern: "/^feat(\\(.+\\))?:/" + minor_pattern: "/feat(\\(.+\\))?:/" # A string which indicates the flags used by the `minor_pattern` regular expression. Supported flags: idgs minor_regexp_flags: "" # A string to determine the format of the version output diff --git a/src/ActionConfig.ts b/src/ActionConfig.ts index babe17f..020506e 100644 --- a/src/ActionConfig.ts +++ b/src/ActionConfig.ts @@ -13,7 +13,7 @@ export class ActionConfig { /** A string which indicates the flags used by the `majorPattern` regular expression. */ public majorFlags: string = ""; /** 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. */ - public minorPattern: string = "/^feat(\\(.+\\))?:/"; + public minorPattern: string = "/feat(\\(.+\\))?:/"; /** A string which indicates the flags used by the `minorPattern` regular expression. */ public minorFlags: string = ""; /** Pattern to use when formatting output version */ diff --git a/src/cli.ts b/src/cli.ts index f88d8fd..49c3f8f 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -33,7 +33,7 @@ program .option( "-m, --minor-pattern ", "Regex pattern for minor version bumps", - "/^feat(\\(.+\\))?:/", + "/feat(\\(.+\\))?:/", ) .option("--minor-flags ", "Flags for minor pattern regex", "") .option(