0.0.28 • Published 10 months ago

@sethwebster/ava-commit v0.0.28

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

@sethwebster/ava-commit

ava-commit is a command-line tool that uses ChatGPT to generate git commit messages automatically. It leverages the capabilities of AI to produce informative, human-like messages. This was created as a fun pet project while I couldn't sleep and has proven to be really useful in my day-to-day workflow. I hope you find it useful too!

Description

Using AI to write your commit messages. It's like having an AI pair programmer assisting you with your commits!

Installation

npm install @sethwebster/ava-commit

Usage

ava-commit [options]

Commands and Options

CommandOptionsExplanation
updateNoneChecks for updates
release-notesNoneGenerates release notes based on what's changed since the most recent tag
configureNoneConfigures the tool
generate-a, --allGenerates a commit message for all commits, not just staged
-v, --verboseGenerates a commit message with verbose output
-l, --lengthGenerates a commit message with a targeted max summary length. Default is 80 characters if not set.
--allGenerates a commit message for all files, bypassing the check for staged files
--lengthGenerates a commit message targeting a specific max summary of characters

Examples

To update the tool:

ava-commit update

To generate release notes:

ava-commit release-notes

To configure the tool:

ava-commit configure

To generate a commit message with all defaults for staged files:

ava-commit generate

To generate a commit message for all commits, not just staged:

ava-commit generate --all

To generate a verbose commit message:

ava-commit generate --verbose

To generate a commit message with a targeted max summary length:

ava-commit generate --length 150

Configuration

To configure ava-commit, you can use the configure command. This will guide you through a series of prompts to customize the tool's settings according to your needs. This flow will run automatically the first time you run the ava-commit.

Recommendations

  1. Alias - Personally, I use an alias in my .zshrc of ac to streamline. It works well with my workflow to set the generate --all option on my alias as I generally don't do half-commits. Hopefully you don't miss the "Active Time Accounting (ac)" tool too much. 🤪
  2. Workflow - This is a general workflow suggestion but working in smaller changes leads to better results. While Ava can figure out larger commit sets it gets harder the larger the set is.

Limitations

Please be aware that ava-commit, like any AI, may not always generate perfect commit messages. It is intended to be a tool to aid with your development process, but should not be relied upon for mission-critical applications without human review.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

0.0.28

10 months ago

0.0.27

10 months ago

0.0.26

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

10 months ago

0.0.18

10 months ago

0.0.17

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago