Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
gandarez committed Oct 23, 2024
1 parent c970762 commit 1d1d574
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
4 changes: 3 additions & 1 deletion cmd/generate/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()
Expand All @@ -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())
}

0 comments on commit 1d1d574

Please sign in to comment.