commit-gate

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 6 Imported by: 0

README

Commit Gate

A minimal commit validation tool validating the commit messages of a branch.

Installation

The binary can be installed using the go install command:

$ go install github.com/prichrd/commit-gate

Usage

$ commit-gate -h
Usage of commit-gate:
  -path string
    	path of the git repository (default "./")
  -regex string
    	regular expression matching the expected commit messages (default "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)")

By default, the CLI uses a regular expression matching Conventional Commits. It can be overriden to whatever you want with the -regex flag.

Docker Image

A Docker image is also available from the Github Package repository:

$ docker run ghcr.io/prichrd/commit-gate:latest -v "$PWD:/src" c --path /src

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL