1.0.3 • Published 1 year ago
@purepm/commit v1.0.3
@purepm/commit
Description
@purepm/commit is a tool to generate commit messages using AI. It leverages the power of AI to create concise and informative commit messages based on your code changes.
Installation
To install @purepm/commit, use npm:
npm install -g @purepm/commitUsage
Setup
Before using @purepm/commit, you need to set it up by running:
mo-commit --setupThis will prompt you to configure the tool, including selecting your AI provider and entering your API token.
Generate Commit Message
To generate a commit message, simply stage your changes and run:
mo-commitYou can also GPG-sign your commits by using the -S flag:
mo-commit -SOptions
- --setup: Run the initial setup to configure the tool.
- -S, --gpg-sign: GPG-sign commits.
Configuration
During setup, you will be prompted to provide the following information:
- AI provider (Currently supports Anthropic)
- API token
- Commit types to use
The configuration is saved in a file located at ~/.mo-commit-config.json.
License
This project is licensed under the MIT License.