Skip to main content

Git tools for Commitizen and PR Summary Generation using AI

Project description

Cometa Git Tools

Una colección de herramientas Git para mejorar el flujo de trabajo de desarrollo, incluyendo un generador de mensajes de commit basado en AI y un generador de resúmenes de PR.

Características

  • 🤖 AI Conventional Commits: Genera mensajes de commit siguiendo la convención de Conventional Commits usando Google Gemini AI
  • 📝 PR Summary Generator: Genera resúmenes de Pull Requests automáticamente
  • 🎨 Interfaz Amigable: Interfaz de línea de comandos intuitiva y colorida

Instalación

Usando pip

pip install cometa-git-tools

Instalación desde el código fuente

git clone https://github.com/cometa/cometa-git-tools.git
cd cometa-git-tools
pip install -e .

Configuración

  1. Configura tu API key de Google Gemini:
export GEMINI_API_KEY='your-api-key'
  1. (Opcional) Agrega la variable a tu archivo .bashrc o .zshrc para hacerla permanente:
echo 'export GEMINI_API_KEY="your-api-key"' >> ~/.zshrc  # o ~/.bashrc
  1. Configura Commitizen para usar el plugin AI:
# Configurar tanto global como proyecto
cz-setup

# Solo configurar globalmente
cz-setup --no-project

# Solo configurar el proyecto actual
cz-setup --no-global

# Ver todas las opciones
cz-setup --help

Uso

Commitizen AI

Este plugin extiende Commitizen para generar mensajes de commit usando AI:

# Agrega tus cambios
git add .

# Genera un mensaje de commit con AI
cz commit

PR Summary Generator

Genera resúmenes de Pull Requests:

# Genera un resumen del PR actual
pr-summary generate

# Ver todas las opciones disponibles
pr-summary --help

Desarrollo

Para contribuir al proyecto:

  1. Clona el repositorio
  2. Instala las dependencias de desarrollo:
pip install -e ".[dev]"
  1. Ejecuta los tests:
pytest

Licencia

MIT License - ver LICENSE para más detalles.

Contribuir

Las contribuciones son bienvenidas! Por favor, lee CONTRIBUTING.md para detalles sobre nuestro código de conducta y el proceso para enviar pull requests.

Soporte

Si encuentras algún problema o tienes una sugerencia, por favor crea un issue en el repositorio de GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cometa_git_tools-0.1.7.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cometa_git_tools-0.1.7-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file cometa_git_tools-0.1.7.tar.gz.

File metadata

  • Download URL: cometa_git_tools-0.1.7.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for cometa_git_tools-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ea24312a54ae7de273700fcd88aaac23cef348709b636480f2c11299ec490f79
MD5 af135305a92f94390996e8d3da1fa7a3
BLAKE2b-256 4e0c4a47d8ca35e208b813582ca771cc9b986d7c2523d76ef7fbac35205c6335

See more details on using hashes here.

File details

Details for the file cometa_git_tools-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for cometa_git_tools-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cd47aed88c241a123a4e95bc0b5af9f88aed8738e5c3e88dcfb314f62fea210d
MD5 b5c5bba9c33639c1841763c2fd819503
BLAKE2b-256 d6f1ea155f62fa5b26203ecd6beca18d16ed9c48d78abd8abc268e354194a4d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page