lalilul3lo / baouncer

CLI for creating Conventional Commit compliant git commits.
0 stars 0 forks source link
commit conventional-commits git

Overview

The Conventional Commit CLI is a Command Line Interface (CLI) tool designed for creating Conventional Commit compliant Git commits. It provides an interactive prompt to help you build your commit messages according to the Conventional Commit specifications, ensuring that your commit history is semantic and easily understandable.

Installation

Until the future of this project has been decided, you'll need to clone and cargo install locally.

clone

git clone https://github.com/lalilul3lo/baouncer.git

cd into root of project

cd baouncer

install

cargo install --path .

commands

commit

On running the command, you'll encounter a series of questions:

For example, the following answers:

**...will generate the following commit message:***

feat(authentication): implement JWT authentication

This commit implements JWT authentication for better security.

closes #42, #43

commit-msg-hook

Will generate a git commit-msg hook at ./git/hooks/commit-msg, that looks like the following:

#!/usr/bin/env sh

commit_message=$(grep -v '^#' "$1")

baouncer check-commit -m "$commit_message"

commit-msg-hook

Validates whether or not a string is a Conventional Commit compliant git commit.