dev-cmd/contributions: Use .to_sentence not .join(", ")
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
parent
6974faa29b
commit
dd986f7705
@ -66,7 +66,7 @@ module Homebrew
|
|||||||
|
|
||||||
sentence = "Person #{args.named.first} directly authored #{commits} commits " \
|
sentence = "Person #{args.named.first} directly authored #{commits} commits " \
|
||||||
"and co-authored #{coauthorships} 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]
|
sentence += if args[:from] && args[:to]
|
||||||
" between #{args[:from]} and #{args[:to]}"
|
" between #{args[:from]} and #{args[:to]}"
|
||||||
elsif args[:from]
|
elsif args[:from]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user