From 36d0dbbd568bcec8a97e7854b8a3a44ce20c4bae Mon Sep 17 00:00:00 2001 From: V Date: Sun, 22 Aug 2021 20:51:22 +0200 Subject: fleet/naut: pluralise "{} commits pushed" message correctly Change-Id: I716969d8c18628166c6b49dba8eca2807e22784d --- fleet/pkgs/naut/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fleet/pkgs/naut/src') diff --git a/fleet/pkgs/naut/src/main.rs b/fleet/pkgs/naut/src/main.rs index 2349330..8c74b6d 100644 --- a/fleet/pkgs/naut/src/main.rs +++ b/fleet/pkgs/naut/src/main.rs @@ -203,9 +203,14 @@ async fn handle( .collect(); lines.push(format!( - "[{}] {} commits pushed to {}", + "[{}] {} {} pushed to {}", repo_name, commits.len(), + if commits.len() == 1 { + "commit" + } else { + "commits" + }, ref_name )); -- cgit 1.4.1