Create merge requests with AI-generated titles and descriptions.
Works with both GitHub and GitLab.
Supports Groq and Hugging Face AI interfaces.
📦 Installation
Install gai-tool via pip:
pip install gai-tool
🚀 Getting Started
Navigate to your git repository:
cd /path/to/your/git/repo
Set API Tokens as Environment Variables:
# Ensure you have your AI interface and GitHub/GitLab API tokens set:exportGROQ_API_KEY='your_groq_api_key'# If you want to use Groq's APIexportHUGGINGFACE_API_TOKEN='your_hf_api_token'# If you want to use Hugging Face's APIexportGITHUB_TOKEN='your_github_token'# If using GitHubexportGITLAB_TOKEN='your_gitlab_token'# If using GitLab
Start Using gai-tool:
# Generate an AI-powered commit message:gai commit -a
⚙️ Configuration
Configuration file is located at ~/.config/gai/config.yaml. Customize settings like the AI interface, temperature, and target branch.
Gai - AI for Git
2024 Nov 03 See all postsGai is an AI-Powered Automation Tool for Git 🚀
command-line application that automates git commit messages and merge requests using AI.
Github
PyPI
✨ Features
📦 Installation
Install gai-tool via pip:
🚀 Getting Started
Navigate to your git repository:
Set API Tokens as Environment Variables:
Start Using gai-tool:
⚙️ Configuration
Configuration file is located at
~/.config/gai/config.yaml
. Customize settings like the AI interface, temperature, and target branch.Example configuration:
📖 Usage
gai-tool provides two main commands:
commit
andmerge
.📝 Commit Messages
Generate an commit message:
Options:
-a
,--all
: Stage all changes before committing.-t
,--temperature
: Override the temperature specified in the config.-i
,--interface
: Specify and override the AI client API to use (groq
orhuggingface
).Example:
🔀 Merge Requests
Create a merge request:
Options:
[remote]
: Specify the remote git repository (default isorigin
).--push
,-p
: Push changes to remote before creating a merge request.--target-branch
,-tb
: Specify the target branch for the merge request (default ismaster
).-t
,--temperature
: Override the temperature specified in the config.-i
,--interface
: Specify and override the AI client API to use (groq
orhuggingface
).Example:
🛠 Build Instructions
Build gai-tool from source:
Clone the Repository:
Navigate to the Project Directory:
Create a Virtual Environment (Optional but Recommended):
Install Build Tools and Dependencies:
Build the Package:
This will generate distribution files in the
dist/
directory.Install the Built Package:
Daniel Ratmiroff © - site made with: blogmaker - credit to Vitalik Buterin