raulcsa/Branch Naming & Version Assistant
Validates branch name patterns, suggests next semver version, and generates normalized Git tags.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| branch-name | The branch name to validate. Defaults to the current GitHub ref. | no | "" |
| regex-pattern | Regular expression to validate the branch name against. | no | ^(feat|fix|docs|style|refactor|test|chore|ci|perf|major|release)/[a-zA-Z0-9._-]+$ |
| current-version | The baseline semantic version to increment. | no | 1.0.0 |
| fail-on-invalid | If set to true, fails the action if the branch name does not match the regex. | no | true |
Outputs
| name | description |
|---|---|
| is-valid | Indicates if the branch name is valid (true or false). |
| branch-type | The prefix/type extracted from the branch (e.g., feat, fix). |
| normalized-tag | A Git-safe version of the branch name (e.g. feat-add-login). |
| next-version | The calculated next semantic version. |