AI tool recommends commit messages
Top 75.0% on sourcepulse
This project provides an AI-powered tool to automatically generate Git commit messages based on code changes. It targets developers seeking to improve commit message quality and consistency, offering suggestions that can be adopted or refined.
How It Works
The system leverages CodeBERT, a pre-trained model that understands both programming and natural languages. It processes code differences (diffs) and uses a novel patch_type_embeddings
mechanism to distinguish between added and deleted code lines. This allows for more contextually relevant commit message generation compared to models that only consider added code.
Quick Start & Requirements
nvidia-docker
for GPU acceleration.
docker run -it -d --gpus 0 -p 5000:5000 graykode/commit-autosuggestions:py
commit_autosuggestions.ipynb
with ngrok
.pip install commit
.commit configure --endpoint <server_address>
.commit -f <diff_file>
.Highlighted Details
Maintenance & Community
master
post-PyPI release.Licensing & Compatibility
Limitations & Caveats
2 years ago
Inactive