pub async fn handle_release_notes_command(
common: CommonParams,
from: String,
to: Option<String>,
repository_url: Option<String>,
version_name: Option<String>,
) -> Result<()>Expand description
Handles the release notes generation command.
This function orchestrates the process of generating release notes based on the provided
parameters. It sets up the necessary environment, creates a GitRepo instance,
and delegates the actual generation to the ReleaseNotesGenerator.
§Arguments
common- Common parameters for the command, including configuration overrides.from- The starting point (commit or tag) for the release notes.to- The ending point for the release notes. Defaults to “HEAD” if not provided.repository_url- Optional URL of the remote repository to use.version_name- Optional version name to use instead of extracting from Git refs.
§Returns
Returns a Result indicating success or containing an error if the operation failed.