diff options
author | V <v@unfathomable.blue> | 2021-08-22 20:51:22 +0200 |
---|---|---|
committer | V <v@unfathomable.blue> | 2021-08-22 20:51:22 +0200 |
commit | 36d0dbbd568bcec8a97e7854b8a3a44ce20c4bae (patch) | |
tree | ae3e2c2b6c4e89adfbd5c7d34909106a91bc669e /fleet/pkgs/naut | |
parent | d4a5ae81c5206a06ff2167f92731c0a911707076 (diff) | |
download | unf-legacy-36d0dbbd568bcec8a97e7854b8a3a44ce20c4bae.tar.zst |
fleet/naut: pluralise "{} commits pushed" message correctly
Change-Id: I716969d8c18628166c6b49dba8eca2807e22784d
Diffstat (limited to 'fleet/pkgs/naut')
-rw-r--r-- | fleet/pkgs/naut/src/main.rs | 7 |
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 )); |