rs-commitizien

Crates.iors-commitizien
lib.rsrs-commitizien
version0.1.2
sourcesrc
created_at2024-04-22 09:03:30.60133
updated_at2024-04-22 09:33:20.692997
descriptionA CLI Tool for validating commit messages
homepage
repositoryhttps://github.com/SpanishInquisition49/rust-commitizien
max_upload_size
id1216083
size21,992
Spanish Inquisition (SpanishInquisition49)

documentation

README

rs-commitizien

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.

Installation

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

Usage

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.

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.

Examples

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
Commit count: 7

cargo fmt