dev-cmd/contributions: Use .to_sentence not .join(", ")

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Issy Long 2022-07-28 12:49:37 +01:00
parent 6974faa29b
commit dd986f7705
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -66,7 +66,7 @@ module Homebrew
sentence = "Person #{args.named.first} directly authored #{commits} commits " \
"and co-authored #{coauthorships} commits " \
"across #{all_repos ? "all Homebrew repos" : repos.join(", ")}"
"across #{all_repos ? "all Homebrew repos" : repos.to_sentence}"
sentence += if args[:from] && args[:to]
" between #{args[:from]} and #{args[:to]}"
elsif args[:from]