Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vlauciani/aicommits
https://github.com/vlauciani/aicommits
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vlauciani/aicommits
- Owner: vlauciani
- License: mit
- Created: 2023-05-06T16:32:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T10:50:17.000Z (2 months ago)
- Last Synced: 2024-10-28T14:08:31.875Z (2 months ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aicommits
## Intro
A docker used to run [AI Commits](https://github.com/Nutlope/aicommits) pacakge, without install Node.js on your host.## Build container
Remeber to get your `OPENAI_KEY` here: https://platform.openai.com/account/api-keys
```sh
docker build --build-arg OPENAI_KEY= --tag vlauciani/aicommits .
```## Usage
Go to your repo, *stage* your files, run docker and finally *push*:
```sh
git add
docker run -it --rm -v ${HOME}/.gitconfig:/root/.gitconfig -v $(pwd):/git vlauciani/aicommits sh -c "cd /git && aicommits"
git push
```### Tip
To semplify, create an alias in your shell; for example:
```sh
alias aic='docker run -it --rm -v ${HOME}/.gitconfig:/root/.gitconfig -v $(pwd):/git vlauciani/aicommits sh -c "cd /git && aicommits"'
```then:
```sh
git add
aic
git push
```### Do you get: `The current directory must be a Git repository!` ?
In case of you receive the message:
```sh
┌ aicommits
│
└ ✖ The current directory must be a Git repository!
```you need simply run, one time, the command:
```sh
git config --global --add safe.directory /git
```and try again.
# Contribute
Thanks to your contributions!Here is a list of users who already contributed to this repository: \
# Author
(c) 2024 Valentino Lauciani valentino.lauciani[at]ingv.it