diff --git a/README.md b/README.md index 7dd1793..7456437 100644 --- a/README.md +++ b/README.md @@ -189,12 +189,12 @@ Uses `auto` bump strategy to calculate the next semantic version. | prerelease_id | false | Text representing the prerelease identifier. | pre | | main_branch_name | false | The main branch name. | master | | develop_branch_name | false | The develop branch name. | develop | -| patch_regex | false | Patch regex to match branch name for patch increment. | (?i)^(.+:)?(bugfix/.+) | -| minor_regex | false | Minor regex to match branch name for minor increment. | (?i)^(.+:)?(feature/.+) | -| major_regex | false | Major regex to match branch name for major increment. | (?i)^(.+:)?(release/.+) | -| build_regex | false | Build regex to match branch name for build increment. | (?i)^(.+:)?((doc(s)?|misc)/.+) | -| hotfix_regex | false | Hotfix regex to match branch name for patch increment. | (?i)^(.+:)?(hotfix/.+) | -| exclude_regex | false | Regex to exclude branches from semantic versioning. | | +| patch_pattern | false | Patch pattern to match branch name for patch increment. | (?i)^(.+:)?(bugfix/.+) | +| minor_pattern | false | Minor pattern to match branch name for minor increment. | (?i)^(.+:)?(feature/.+) | +| major_pattern | false | Major pattern to match branch name for major increment. | (?i)^(.+:)?(release/.+) | +| build_pattern | false | Build pattern to match branch name for build increment. | (?i)^(.+:)?((doc(s)?|misc)/.+) | +| hotfix_pattern | false | Hotfix pattern to match branch name for patch increment. | (?i)^(.+:)?(hotfix/.+) | +| exclude_pattern | false | Pattern to exclude branches from semantic versioning. | | | repo_dir | false | The repository path. | current dir | | debug | false | Enable debug mode. | false | diff --git a/cmd/generate/params_test.go b/cmd/generate/params_test.go index 2a3c830..451192f 100644 --- a/cmd/generate/params_test.go +++ b/cmd/generate/params_test.go @@ -373,6 +373,7 @@ func TestLoadParams_String(t *testing.T) { os.Setenv("INPUT_BUILD_PATTERN", "^build/.+") os.Setenv("INPUT_HOTFIX_PATTERN", "^hotfix/.+") os.Setenv("INPUT_EXCLUDE_PATTERN", "^ignore/.+") + os.Setenv("INPUT_DEBUG", "true") defer func() { os.Unsetenv("INPUT_BUMP") @@ -389,6 +390,7 @@ func TestLoadParams_String(t *testing.T) { os.Unsetenv("INPUT_BUILD_PATTERN") os.Unsetenv("INPUT_HOTFIX_PATTERN") os.Unsetenv("INPUT_EXCLUDE_PATTERN") + os.Unsetenv("INPUT_DEBUG") }() params, err := generate.LoadParams() @@ -408,6 +410,6 @@ func TestLoadParams_String(t *testing.T) { ` hotfix pattern "^hotfix/.+",`+ ` exclude pattern: "^ignore/.+",`+ ` repo dir: "/var/tmp/project",`+ - ` debug: false`, + ` debug: true`, params.String()) }