summary refs log tree commit diff
path: root/fleet
diff options
context:
space:
mode:
authorV <v@unfathomable.blue>2021-08-22 20:51:22 +0200
committerV <v@unfathomable.blue>2021-08-22 20:51:22 +0200
commit36d0dbbd568bcec8a97e7854b8a3a44ce20c4bae (patch)
treeae3e2c2b6c4e89adfbd5c7d34909106a91bc669e /fleet
parentd4a5ae81c5206a06ff2167f92731c0a911707076 (diff)
downloadunf-legacy-36d0dbbd568bcec8a97e7854b8a3a44ce20c4bae.tar.zst
fleet/naut: pluralise "{} commits pushed" message correctly
Change-Id: I716969d8c18628166c6b49dba8eca2807e22784d
Diffstat (limited to 'fleet')
-rw-r--r--fleet/pkgs/naut/src/main.rs7
1 files changed, 6 insertions, 1 deletions
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
 				));