the-cafe / git-ai-commit

let AI write your commit messages
https://pypi.org/project/git-ai-commit/
52 stars 0 forks source link

improve prompt, add new command for max character length and passing file from fs to summarize #23

Closed ming1in closed 3 months ago

ming1in commented 3 months ago

Description

Try to make our prompt better and some tools to improve the devX around testing the prompt.

Add support for setting a character limit on the prompt

> gac config --max-length=60
Max length set to 60

> gac config -ml 70
Max length set to 70

Add a new CLI command for summarizing a diff from a local diff file

> gac summary --diff=.local/example.diff

Here is a summary of your changes:

  ✨add getOrganizationImage function for conditional image loading

to use this summary run: `git commit -m "✨add getOrganizationImage function for conditional image loading"`

Test Plan

Build and install the latest changes

pip install . && pre-commit install && pre-commit autoupdate

See output of the new CLI command above