Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit 4f567a6

Browse files
authored
Merge pull request #9 from IanSkelskey/dev
Switch Deployment to NPM
2 parents 95ee878 + 34d7b72 commit 4f567a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1557
-1220
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Checkout the code from the repository
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
# Step 2: Set up Node.js environment
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '20'
22+
registry-url: 'https://registry.npmjs.org/'
23+
24+
# Step 3: Install dependencies
25+
- name: Install dependencies
26+
run: npm install
27+
28+
# Step 4: Build the project
29+
- name: Build the project
30+
run: npm run build
31+
32+
# Step 5: Publish to npm
33+
- name: Publish to npm
34+
run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/sphinx.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
*/__pycache__/
2-
build/
1+
# Node.js dependencies
2+
node_modules/
3+
4+
# Output from TypeScript
5+
dist/
6+
7+
# TypeScript cache
8+
*.tsbuildinfo
9+
10+
# Logs
11+
npm-debug.log*

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
package-lock.json

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 120,
6+
"tabWidth": 4
7+
}

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
SOFTWARE.
2020

21-
© 2024 Ian Skelskey
21+
© 2024 Ian Skelskey

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 26 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,58 @@
1-
<img src="lib/logo.svg" width="100">
1+
# Commit Generator
22

3-
# AI Diff Commit
3+
![Version](https://img.shields.io/badge/version-v1.0.0-blue)
44

5-
Automates the creation of standardized Git commit messages using [OpenAI's API](https://platform.openai.com/docs/), ensuring adherence to the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) for clear and meaningful commit history.
5+
Automates the creation of standardized Git commit messages using [OpenAI's API](https://platform.openai.com/docs/).
66

7-
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
7+
![JavaScript](https://img.shields.io/badge/javascript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)
8+
![TypeScript](https://img.shields.io/badge/typescript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)
89
![OpenAI](https://img.shields.io/badge/OpenAI-00A79D?style=for-the-badge&logo=openai&logoColor=white)
910
![Git](https://img.shields.io/badge/Git-F05032?style=for-the-badge&logo=git&logoColor=white)
10-
![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-FB607C?style=for-the-badge&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2l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41LDg5LjQsODQuOCwxMjUuNywzNi4zLDM2LjMsNzguNiw2NC44LDEyNS43LDg0LjgsNDguOCwyMC42LDEwMC42LDMxLjEsMTU0LDMxLjFzMTA1LjItMTAuNSwxNTQtMzEuMWM0Ny4xLTE5LjksODkuNC00OC41LDEyNS43LTg0LjgsMzYuMy0zNi4zLDY0LjgtNzguNiw4NC44LTEyNS43LDIwLjYtNDguOCwzMS4xLTEwMC42LDMxLjEtMTU0cy0xMC41LTEwNS4yLTMxLjEtMTU0Yy0xOS45LTQ3LjEtNDguNS04OS40LTg0LjgtMTI1LjctMzYuMy0zNi4zLTc4LjYtNjQuOC0xMjUuNy04NC44LTQ4LjgtMjAuNi0xMDAuNi0zMS4xLTE1NC0zMS4xWk00MDAsNjc1Yy03My41LDAtMTQyLjUtMjguNi0xOTQuNS04MC41LTUxLjktNTEuOS04MC41LTEyMS04MC41LTE5NC41czI4LjYtMTQyLjUsODAuNS0xOTQuNWM1MS45LTUxLjksMTIxLTgwLjUsMTk0LjUtODAuNXMxNDIuNSwyOC42LDE5NC41LDgwLjVjNTEuOSw1MS45LDgwLjUsMTIxLDgwLjUsMTk0LjVzLTI4LjYsMTQyLjUtODAuNSwxOTQuNWMtNTEuOSw1MS45LTEyMSw4MC41LTE5NC41LDgwLjVaTTQwMCwxMjYuMWMtNzMuMiwwLTE0MiwyOC41LTE5My43LDgwLjItNTEuNyw1MS43LTgwLjIsMTIwLjUtODAuMiwxOTMuN3MyOC41LDE0Miw4MC4yLDE5My43YzUxLjcsNTEuNywxMjAuNSw4MC4yLDE5My43LDgwLjJzMTQyLTI4LjUsMTkzLjctODAuMmM1MS43LTUxLjcsODAuMi0xMjAuNSw4MC4yLTE5My43cy0yOC41LTE0Mi04MC4yLTE5My43Yy01MS43LTUxLjctMTIwLjUtODAuMi0xOTMuNy04MC4yWiIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+)
11+
![npm](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)
12+
13+
## Built-In Commit Standards
14+
15+
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-FB607C?style=for-the-badge&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iQ2FwYV8xIiBkYXRhLW5hbWU9IkNhcGEgMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA4MDAgODAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4KICAgICAgLmNscy0xIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIHN0cm9rZTogI2ZmZjsKICAgICAgICBzdHJva2UtbWl0ZXJsaW1pdDogNS40OwogICAgICAgIHN0cm9rZS13aWR0aDogMS4zcHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDxnIGlkPSJTVkdSZXBvX2ljb25DYXJyaWVyIiBkYXRhLW5hbWU9IlNWR1JlcG8gaWNvbkNhcnJpZXIiPgogICAgPGc+CiAgICAgIDxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTY4MC4zLDExOS44Yy0zNi40LTM2LjQtNzguOC02NC45LTEyNi04NC45QzUwNS40LDE0LjIsNDUzLjUsMy43LDQwMCwzLjdzLTEwNS40LDEwLjUtMTU0LjMsMzEuMmMtNDcuMiwyMC04OS42LDQ4LjUtMTI2LDg0LjktMzYuNCwzNi40LTY0LjksNzguOC04NC45LDEyNkMxNC4yLDI5NC42LDMuNywzNDYuNSwzLjcsNDAwczEwLjUsMTA1LjQsMzEuMiwxNTQuM2MyMCw0Ny4yLDQ4LjUsODkuNiw4NC45LDEyNiwzNi40LDM2LjQsNzguOCw2NC45LDEyNiw4NC45LDQ4LjksMjAuNywxMDAuOCwzMS4yLDE1NC4zLDMxLjJzMTA1LjQtMTAuNSwxNTQuMy0zMS4yYzQ3LjItMjAsODkuNi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tODAuMi0xOTMuNy04MC4yWiIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+)](https://www.conventionalcommits.org/en/v1.0.0/)
16+
[![Evergreen ILS](https://img.shields.io/badge/Evergreen%20ILS-379676?style=for-the-badge&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NjguMjQgNDg0LjM5Ij4KICA8ZGVmcz4KICAgIDxzdHlsZT4KICAgICAgLmNscy0xIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNzkuMTUsNDg0LjM5di00MS4zOWMtNTIuNzgtMy40OS0xMDUuNTEtMTAuMjEtMTU3LjI4LTIwLjktNi4yOS0xLjMtMTMuNDctMi41Ni0xOS41NS00LjM4LS43My0uMjItMi40LS4yNC0yLjMxLTEuMjNsMTAzLjQ3LTcxLjQ4LTY0LjY3LTE0Ljg3LDg2LjY1LTcyLjQ1LTQ3LjE5LTE0Ljg3LDczLjA2LTc2LjMyLTM0LjI0LTE0Ljg3TDIzNC4zOCwwbDExNi43NywxNTEuNjQtMzQuMjQsMTQuODcsNzMuMDYsNzYuMzItNDcuMTksMTQuODcsODYuNjUsNzIuNDUtNjQuNjcsMTQuODcsMTAzLjQ3LDcxLjQ4Yy4wOS45OS0xLjU4LDEuMDEtMi4zMSwxLjIzLTYsMS44LTEzLjMyLDMuMDktMTkuNTUsNC4zOC01MS43NiwxMC43MS0xMDQuNTEsMTcuMzEtMTU3LjI4LDIwLjl2NDEuMzlzLTEwOS45NCwwLTEwOS45NCwwWiIvPgo8L3N2Zz4=)](https://evergreen-ils.org/)
1117

1218
## Features
1319

14-
- **Automated Commit Messages**: Generate standardized commit messages based on the changes in your repository.
15-
- **Conventional Commits**: Ensure that your commit messages adhere to the Conventional Commits specification.
16-
- **Customizable Commit Messages**: Modify the generated commit message to suit your needs before committing the changes.
17-
- **Automated Git Operations**: Automatically add, commit, and push the changes to your repository.
20+
- **Automated Commit Messages**: Generate standardized commit messages based on the changes in your repository.
21+
- **Automated Git Operations**: Automatically add, commit, and push the changes to your repository.
1822

1923
## Limitations
2024

21-
- **OpenAI API Key**: Requires an API key from OpenAI to access the GPT-3 model for generating commit messages.
22-
- **Internet Connection**: Requires an active internet connection to communicate with the OpenAI API.
23-
- **Always Adds All Changes**: Adds all changes in the repository to the commit, which may not be suitable for all scenarios.
24-
- **Requires a Git Repository**: Needs to be run in a Git repository to access the changes for generating commit messages.
25-
- **Windows Installation**: The installation script is currently designed for Windows systems.
26-
- **Python Version**: Requires Python 3 or higher to run the script.
25+
- **OpenAI API Key**: Requires an API key from OpenAI to access the GPT-3 model for generating commit messages.
26+
- **Internet Connection**: Requires an active internet connection to communicate with the OpenAI API.
27+
- **Requires a Git Repository**: Needs to be run in a Git repository to access the changes for generating commit messages.
2728

2829
## Dependencies
2930

30-
- [**Colorama**](https://pypi.org/project/colorama/): For colored output in the terminal.
31-
- [**OpenAI**](https://pypi.org/project/openai/): For interacting with the OpenAI API.
32-
- [**InquirerPy**](https://pypi.org/project/InquirerPy/): For interactive command-line user interfaces.
33-
3431
## Installation Instructions
3532

36-
![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)
37-
![macOS](https://img.shields.io/badge/macOS-000000?style=for-the-badge&logo=apple&logoColor=white)
38-
39-
To set up the script, follow these steps:
40-
41-
1. Clone the repository and navigate to the project directory.
42-
2. Run the installation script using the following command:
43-
44-
```bash
45-
python install.py
46-
```
47-
48-
> **Note:** You may need to specify `python3` instead of `python` depending on your system configuration.
49-
50-
This script will:
51-
- Install the required dependencies.
52-
- Prompt you to enter your OpenAI API key and set it as an environment variable.
53-
- Move the repository contents to:
54-
- `C:\\Scripts\\ai_diff_commit` for Windows
55-
- `~/Scripts/ai_diff_commit` for macOS
56-
- Add the `Scripts` directory to your system's PATH environment variable.
57-
- Create a script file in the `Scripts` directory to run the script from any location:
58-
- `ai_diff_commit.bat` for Windows
59-
- `ai_diff_commit.sh` for macOS
60-
- For macOS, it will automatically source the appropriate shell configuration file to apply changes immediately if using zsh.
33+
Commit Generator can be installed using npm:
6134

62-
> **Note:** If the command `ai_diff_commit` is still not found, please restart your terminal or run `source ~/.zshrc` or `source ~/.bash_profile` manually.
35+
```bash
36+
npm install -g commit-generator
37+
```
6338

6439
## Usage Instructions
6540

66-
Once you have set up the script using the installation instructions, you can use the `ai_diff_commit` command to generate commit messages based on the changes in your repository.
41+
Once you have set up the script using the installation instructions, you can use the `comgen` command to generate commit messages based on the changes in your repository.
6742

6843
### Flags
6944

70-
- `-a`, `--all`: Add all changes in the repository to the commit. By default, only the modified files are added.
71-
- `-h`, `--help`: Display help information for the script.
72-
- `-m`, `--model`: Specify the OpenAI API language model to use for generating commit messages.
73-
- `-p`, `--push`: Automatically push the changes to the remote repository after committing.
45+
- `-a`, `--all`: Add all changes in the repository to the commit. By default, only the modified files are added.
46+
- `-h`, `--help`: Display help information for the script.
47+
- `-m`, `--model`: Specify the OpenAI API language model to use for generating commit messages. See the [OpenAI API documentation](https://platform.openai.com/docs/models/) for available models.
48+
- `-p`, `--push`: Automatically push the changes to the remote repository after committing.
7449

7550
For example, to generate a commit message based on all changes in the repository and push the changes to the remote repository, you can use the following command:
7651

7752
```bash
78-
ai_diff_commit -a -p
53+
comgen -a -p
7954
```
8055

81-
## File Selection
82-
83-
The script will prompt you to select the files you want to include in the commit. You can use the arrow keys to navigate the list and the spacebar to select or deselect files. Press `Enter` to proceed with the selected files.
84-
85-
![File Selection Screenshot](lib/screenshots/file_selection.png)
86-
87-
## Example Output
88-
89-
![Sample Output](lib/screenshots/output.png)
90-
9156
## License
9257

9358
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.

0 commit comments

Comments
 (0)