arnevm123 / meteor

CLI tool for writing conventional commits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

️☄ meteor ☄

Meteor is a simple CLI tool that helps you to use conventional commits with git.

You can call meteor where you'd normally type git commit. All flags supported in git commit will still work.

Installation

Install with Go (1.21+):

go install github.com/stefanlogue/meteor@latest

Or grab a binary from the latest release.

Customisation

You can customise the options available by creating a .meteor.json file anywhere in the directory tree (at or above the current working directory). The config file closest to the current working directory will be preferred. This enables you to have different configs for different parent directories, such as one for your personal work, one for your actual work, one for open source work etc.

The content should be in the following format:

{
  "boards": [
    { "name": "COMP" },
    { "name": "PERS" }
  ],
  "coauthors": [
    { "name": "John Doe", "email": "john.doe@email.com" }
  ],
  "prefixes": [
    { "title":  "feat", "description":  "a new feature"},
    { "title":  "fix", "description":  "a bug fix"},
    { "title":  "bug", "description":  "introducing a bug"}
  ],
}

If you use boards (Jira etc) but need a way to have commits without one, add the following to the boards array:

{
  "boards": [
    { "name": "COMP" },
    { "name": "NONE" }
  ]
}

About

CLI tool for writing conventional commits


Languages

Language:Go 91.6%Language:Python 5.8%Language:Shell 2.6%