Coder Social home page Coder Social logo

spanishinquisition49 / rust-commitizien Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15 KB

Rust Commitizen - A CLI tool used to validate commits according to Conventional Commits specification

Rust 100.00%
cli-tool conventional-commits validation

rust-commitizien's Introduction

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

rust-commitizien's People

Contributors

spanishinquisition49 avatar

Stargazers

Simone Romano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.