ezcommit

command module
v0.0.0-...-1e0429a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ezcommit

Effortlessly generate professional git commit messages based on your staged changes using the power of Google Gemini. Say goodbye to commit message writer's block and ensure clear, consistent commit history!

Features

  • Automated Commit Message Generation: Analyzes your staged git diff and uses Google Gemini to suggest relevant and informative commit messages.
  • Conventional Commits Support: Generates messages that adhere to the Conventional Commits specification (e.g., feat:, fix:, chore:).
  • Customizable Prompts (Future): Allows you to fine-tune the prompts sent to Gemini for more specific commit message generation.
  • Easy Integration: Simple to use with your existing git workflow.

How It Works

ezcommit leverages the Google Gemini API to understand the context of your code changes and generate meaningful commit messages. It analyzes the output of git diff --staged and sends a carefully crafted prompt to Gemini, requesting a commit message that summarizes the changes.

Prerequisites

  • Go Installation: ezcommit is written in Go. Make sure you have Go installed on your system. You can download it from https://go.dev/dl/.
  • Git: You need Git installed to stage your changes.
  • Google Gemini API Key: You will need an API key from Google AI Studio to use the Gemini models.

Getting Your Gemini API Key

  1. Go to the Google AI Studio website: https://aistudio.google.com/app/apikey
  2. If you haven't already, you'll need to create a project.
  3. Once your project is set up, navigate to the "API keys" section (usually in the sidebar).
  4. Click on "Create new API key".
  5. Copy the generated API key. Keep this key secure and do not share it publicly.

Installation

Currently, ezcommit is under development. Once a stable version is released, installation instructions will be provided here.

(Example - Future Installation via Go):

go install github.com/minhnhat97kg/ezcommit@latest

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址