Repository navigation
feat: cora commit — review + auto commit message + quality gate (#262) - #263
Merged
Merged
Conversation
…#262) - New src/commands/commit_cmd.rs with full commit workflow - HITL mode (default): interactive [Y]es/[E]dit/[N]o prompt - YOLO mode (--yolo): auto-commit, zero prompts - --force: commit even if quality gate fails - --no-review: skip review, only generate commit message - --edit: always open $EDITOR - Conventional commit format (feat/fix/refactor/perf/docs/test/chore/style/build/ci) - Auto-truncates long subjects to 72 chars - Quality gate integration (block on FAIL unless --force) - Debt snapshot saved after commit - LLM prompt optimized for commit message generation - chat_completion_raw() + chat_completion_stream_raw() in engine/llm.rs - 22 unit tests (parse, prompt, stats, message formatting) - All 517 tests pass, clippy clean, fmt clean
- Unique temp file per process (avoid collision) - Handle multi-word $EDITOR (e.g. code --wait) - Use git commit -F for multi-line messages - Include deleted lines in diff stats - All 517 tests pass, clippy clean
- Use nanosecond timestamps for unique temp file names - Use sh -c for multi-word $EDITOR handling (e.g. code --wait) - git commit -F for multi-line messages via temp file - All 517 tests pass, clippy clean
- README: add commit to quick-start + commands table - docs/cli-reference.md: add commit rows + examples - docs/usage.md: new Commit Workflow section with HITL/YOLO + flags - CHANGELOG.md: add commit to [Unreleased] - AGENT.md/.agent.md: bump test count to 517, add commit_cmd.rs
14 tasks
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.
cora commit— Review + Auto Commit Message + Quality Gate (Issue #262)What's New
cora commit— single command that reviews staged changes, generates a conventional commit message, and commits (or blocks).Two Modes
HITL (default)
YOLO (
--yolo)No prompts. Auto-commits on gate pass, blocks on gate fail.
Features
--force)git commit -F)$EDITORsupport viash -cFiles Changed
src/commands/commit_cmd.rssrc/commands/mod.rssrc/engine/llm.rschat_completion_raw()+chat_completion_stream_raw()src/main.rsCommitsubcommandVerification
cargo test— 517/517 pass (22 new)cargo clippy --all-targets -- -D warnings— cleancargo fmt --all -- --check— clean