di-sukharev / opencommit

just a GPT wrapper for git — generate commit messages by an LLM in 1 sec — works best with Claude 3.5 — supports local models too
https://www.npmjs.com/package/opencommit
MIT License
6.19k stars 329 forks source link

[Feature]: add context for WHY in commit message #398

Open di-sukharev opened 3 months ago

di-sukharev commented 3 months ago

Description

lets help ai to understand why the changes were done

Suggested Solution

a flag: oco -- why="string"

mb string can be ticket description

Alternatives

No response

Additional Context

No response

di-sukharev commented 3 months ago

i would also make the WHY generation optional and turned off by default, as it's not 100% accurate and I would be ok personally with just "what has been changed" — it's enough now

di-sukharev commented 2 months ago

i added an OCO_WHY boolean config.

but this ticket still requires updating all the few shots we send in different languages to the LLMs, will do next