Crates.io | rs-commitizien |
lib.rs | rs-commitizien |
version | 0.1.2 |
source | src |
created_at | 2024-04-22 09:03:30.60133 |
updated_at | 2024-04-22 09:33:20.692997 |
description | A CLI Tool for validating commit messages |
homepage | |
repository | https://github.com/SpanishInquisition49/rust-commitizien |
max_upload_size | |
id | 1216083 |
size | 21,992 |
rs-commitizien
is a command-line tool written in Rust for validating commit
messages according to the Conventional Commit standard. It helps ensure
consistency and clarity in commit messages across a project, making it easier
to understand the purpose of each commit.
To install rs-commitizien
, you'll need Rust and Cargo installed on your
system. Once you have them installed, you can use Cargo to install
rs-commitizien
:
cargo install rs-commitizien
After installation, you can use rs-commitizien to validate commit messages. Simply navigate to your project directory and run:
rs-commitizien <commit-message>
Replace <commit-message> with the commit message you want to validate. The tool will output whether the commit message conforms to the Conventional Commit standard.
The Conventional Commit standard provides a set of rules for formatting commit messages. Each commit message consists of a header, an optional body, and an optional footers. The header has a specific format:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Where:
type
: Describes the kind of change being made (e.g., feat, fix, docs).scope
(optional): Specifies the scope of the change (e.g., component,
module).description
: Provides a brief summary of the change.See more at Conventional Commits.
Here's an example of a valid commit message:
feat: allow provided config object to extend other configs
BREAKING CHANGE: `extends` key in config file is now used for extending other config files