Skip to main content

handle_generate_commit_msg

Function handle_generate_commit_msg 

Source
pub fn handle_generate_commit_msg(
    config: CommitGenerationConfig<'_>,
) -> Result<()>
Expand description

Handles the --generate-commit-msg command.

Generates a commit message for current changes using the standard pipeline. Uses the same generate_commit_message() function as the main workflow, ensuring consistent behavior with proper fallback chain support and logging.

§Arguments

  • config - The pipeline configuration
  • registry - The agent registry
  • logger - Logger for info/warning messages
  • colors - Color configuration for output
  • developer_agent - Name of the developer agent to use (for commit generation)
  • _reviewer_agent - Name of the reviewer agent (not used, kept for API compatibility)

§Returns

Returns Ok(()) on success or an error if generation fails.