Skip to content

brewsterbhg/tagged-commits

Repository files navigation

tagged-commits Build Status

🏷️ A CLI tool for generating opinionated commit messages with issue/ticket #'s

Why?

  • Standardize your commits!
  • Keep a consistent link between your issue tracking and your work!
  • Create more meaningful commit messages!
  • No more typing git commit -m!

Install

Install globally to run from the command line or locally to be used as a script in your project:

npm install -g tagged-commits

or

npm install --save-dev tagged-commits

If you are using NPM 5.2+ you can use npx instead of installing globally:

npx tc

Usage

Run tagged-commits from the command line by typing tc, or add it to a script in your package.json:

"scripts": {
    "tc": "tc"
}

How It Works

You'll be prompted to answer a few questions about your commit. If you follow a branch naming convention of [branch type]/[prefix]-[ticket #] (ex: feature/TC-42), it will automatically parse the ticket information for you, otherwise you can add it manually.

Generating a commit with tagged-commits

After entering your commit message information, it will display a preview of your commit message. If everything looks good, you can confirm and the code will be committed for you!

Contributing

If you've noticed a bug or have a feature you'd like to suggest, please feel free to open a GitHub Issue. If you would like to contribute to the project, feel free to fork this repo, create a new branch & open a pull request.

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published