feat: add --yolo flag for immediate commits#93
Merged
Merged
Conversation
Introduced a `yolo` mode that bypasses the interactive confirmation
step. When enabled, the application automatically commits the generated
summary upon receiving it from the LLM.
```mermaid
graph LR
A[LLM Result] --> B{YOLO mode?}
B -- Yes --> C[Commit Immediately]
B -- No --> D[Show Confirmation UI]
```
Contributor
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a 'YOLO mode' via a new --yolo command-line flag, which allows the application to automatically commit generated summaries without manual confirmation. The changes involve updating the CLI flag parsing, the application runner, and the UI model to bypass the confirmation view when the flag is enabled. Additionally, safety checks were added to the UI rendering logic to handle nil sub-models, and unit tests were updated to cover the new functionality. A review comment suggests adding a validation check in YOLO mode to prevent the application from attempting to create an empty commit if the LLM fails to generate a summary.
Coverage Report for CI Build 25939876817Coverage increased (+0.3%) to 32.271%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
--yolo flag for immediate commits
Properly register the `all` flag as a pointer variable to ensure it is correctly captured and passed to the `git.Client` during application initialization.
Stop execution and report an error if the LLM fails to generate a commit message while in `yolo` mode to prevent committing empty summaries.
rm-hull
added a commit
that referenced
this pull request
May 23, 2026
…/delete-line-capability * 'main' of github.com:rm-hull/git-commit-summary: feat: separate system instructions and user prompts (#102) feat: support Gemini 3.5 Flash model chore(deps): Bump github.com/openai/openai-go/v3 from 3.36.0 to 3.37.0 (#100) chore(deps): Bump google.golang.org/genai from 1.57.0 to 1.58.0 (#101) style: reorder version notice message parts style: adjust new version notification format refactor: defer error check in app.Run chore: go get -u && go mod tidy (#99) feat: add automatic version update check (#98) chore(deps): Bump github.com/revrost/go-openrouter from 1.5.0 to 1.6.0 (#97) chore: go get -u && go mod tidy (#96) fix: reset cursor position in commit summary textarea feat: display LLM generation duration in UI feat: add Gemma 4 26B and 31B models feat: add `--yolo` flag for immediate commits (#93) chore: go get -u && go mod tidy (#95) feat: add support for including all modified files (#94) chore(deps): Bump google.golang.org/genai from 1.56.0 to 1.57.0 (#92)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduced a
yolomode that bypasses the interactive confirmation step. When enabled, the application automatically commits the generated summary upon receiving it from the LLM.graph LR A[LLM Result] --> B{YOLO mode?} B -- Yes --> C[Commit Immediately] B -- No --> D[Show Confirmation UI]