commit
Conventional Commits: parse a message, decide the version bump, validate.
Commit parses type(scope)!: description with its body and footers, following the
specification; Bump and bump_for turn a list of commits into the semantic-version bump they
call for, is_valid is the yes/no shortcut, and emoji_for gives the gitmoji of the helpers4
convention.
Install
Section titled “Install”Cargo feature commit (enabled by default). To compile only this module:
or in Cargo.toml:
Import path: helpers4::commit.
| Item | What it does |
|---|---|
bump_for | The largest version bump called for by any of commits. |
Bump | How much a set of changes raises a semantic version. |
Commit | A parsed Conventional Commits 1.0.0 message: type(scope)!: description, then an optional body and optional footers. |
emoji_for | The emoji the helpers4 commit convention puts after the colon for a commit type, such as ✨ for feat and 🐛 for fix. |
is_valid | Whether message is a valid Conventional Commit. |
Error types
Section titled “Error types”Documented on the page of the helper that returns them.
| Type | Returned by |
|---|---|
ParseCommitError | Commit |
