Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit dacf543

Browse files
committed
ABC123 fix(refactor): Change placement of the issue to the footer following git trailer approach
1 parent 03b7b53 commit dacf543

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum GitError {
1313
/// Runs a Git command with the specified subcommand and arguments.
1414
fn run_git_command(command: &str, args: &[&str], verbose: bool) -> Result<String> {
1515
if verbose {
16-
println!("{} git {} {}", "[RUNNING] ".green(), command, args.join(" "));
16+
println!("{} git {} {}", "[RUNNING] ".cyan(), command, args.join(" "));
1717
}
1818
let output = Command::new("git")
1919
.arg(command)

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn main() -> anyhow::Result<()> {
9494
cli::Commands::Status => {
9595
println!("--- Checking Git status ---");
9696
let status = git::status(verbose)?;
97-
println!("{}", format!("Git Status:\n{}", status).green());
97+
println!("{}", format!("Git Status:\n{}", status).blue());
9898
}
9999
cli::Commands::Commit { r#type, scope, message, no_verify, issue} => {
100100
println!("--- Committing changes ---");
@@ -104,7 +104,7 @@ fn main() -> anyhow::Result<()> {
104104
let final_commit_message = if no_verify {
105105
let mut msg = header;
106106
if let Some(issue_ref) = &issue {
107-
msg = format!("{} {}", issue_ref, msg);
107+
msg.push_str(&format!("\n\nRefs: {}", issue_ref));
108108
}
109109
Some(msg)
110110
} else {

0 commit comments

Comments
 (0)