Skip to main content

Module commit

Module commit 

Source
Expand description

Commit message generation phase.

This module handles automated commit message generation using the standard agent pipeline with fallback support. It replaces the custom implementation in repo.rs that lacked proper logging and fallback handling.

The phase:

  1. Takes a git diff as input
  2. Runs the commit agent with the diff via the standard pipeline
  3. Extracts the commit message from agent output
  4. Returns the generated message for use by the caller

Structs§

CommitMessageResult
Result of commit message generation.

Functions§

commit_with_generated_message
Create a commit with an automatically generated message using the standard pipeline.
generate_commit_message
Generate a commit message using the standard agent pipeline with fallback.