feat: add --hint flag to provide context#111
Conversation
Introduced a new `-H/--hint` flag to allow users to provide additional contextual guidance for the commit message generation. This hint is appended to the prompt sent to the LLM to improve the relevance of the generated summary.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Coverage Report for CI Build 26369786331Warning No base build found for commit Coverage: 33.659%Details
Uncovered Changes
Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Update documentation to include the new `--hint` flag, allowing users to provide additional context to the LLM for improved commit message generation.
There was a problem hiding this comment.
Code Review
This pull request introduces a new --hint (or -H) CLI flag to provide contextual guidance during commit summary generation. The changes include updating the application's Run method, the UI model, and the prompt generation logic to incorporate this hint. Feedback from the review suggests using simple string concatenation instead of fmt.Sprintf for basic string assembly to follow Go idioms. Additionally, several redundant comments in the test suite were identified for removal to comply with the project's style guide regarding obvious code explanations.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Replace `fmt.Sprintf` with simple string concatenation to improve performance in the summary generation loop.
Introduced a new
-H/--hintflag to allow users to provide additional contextual guidance for the commit message generation. This hint is appended to the prompt sent to the LLM to improve the relevance of the generated summary.Fixes: #105