Skip to main content

Git tools for Commitizen and PR Summary Generation using AI

Project description

Giji 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/creador de Pull Requests.

Características

  • 🤖 AI Conventional Commits: Genera mensajes de commit siguiendo la convención de Conventional Commits usando Google Gemini AI
  • 📝 PR Manager: Genera y crea Pull Requests automáticamente con resúmenes inteligentes
  • 🎨 Interfaz Amigable: Interfaz de línea de comandos intuitiva y colorida
  • 🔧 Fácil Configuración: Comando cz-setup para configurar todo automáticamente

Instalación

Usando pip

pip install giji

Instalación desde el código fuente ss

git clone https://github.com/cometa/giji.git
cd giji
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:
# Configuración rápida (recomendado)
cz-setup

# Opciones avanzadas:
cz-setup --help         # Ver todas las opciones disponibles
cz-setup --no-global   # Solo configurar el proyecto actual
cz-setup --no-project  # Solo configurar globalmente

Archivos de Configuración

El comando cz-setup creará/modificará dos archivos:

  1. ~/.commitizen/config.toml: Configuración global de commitizen
  2. ./pyproject.toml: Configuración local del proyecto

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

Herramienta completa para gestionar Pull Requests:

# Genera un resumen del PR actual para poder visualizarlo en el editor de texto
pr-summary generate

# Crea un nuevo PR con resumen automático
pr-summary create

# Crea un PR especificando la rama base
pr-summary create --base main

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

La herramienta permite:

  • 📝 Generar resúmenes detallados de los cambios
  • ✨ Crear PRs directamente desde la línea de comandos
  • 🔄 Especificar la rama base del PR
  • 🤖 Generar títulos y descripciones usando AI

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

giji-0.1.13.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

giji-0.1.13-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file giji-0.1.13.tar.gz.

File metadata

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

File hashes

Hashes for giji-0.1.13.tar.gz
Algorithm Hash digest
SHA256 4993d9e8e88295c9411d59c68061702086d8fca8f0e6e525a9b3c5c3a3688e0f
MD5 1a8d7572978170b93bde67f788cae0e2
BLAKE2b-256 8ec96541078e6b1aaae7f072316044c33cf933c58a64b914c27b0c0847a2ffe4

See more details on using hashes here.

File details

Details for the file giji-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: giji-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for giji-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fc5636c9db4bfb39e907d29213316da6f7655e90ee471c486a996b29ebaadd
MD5 c9ba9f28cff8094494b441766a9c7c73
BLAKE2b-256 f6ca0545313fe2f3ca2ad263a3f80c4e438da6b423ce5081b9b5f351d962530d

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