dev-cmd/contributions: Improve sentence string line wrapping

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Issy Long 2022-07-25 10:30:12 +01:00
parent 33d3aef295
commit f6b2fe5093
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -54,9 +54,9 @@ module Homebrew
coauthorships += git_log_coauthor_cmd(T.must(repo_path), args)
end
sentence = "Person #{args.named.first} directly authored #{commits} commits"
sentence += " and co-authored #{coauthorships} commits"
sentence += " to #{args[:repos].join(", ")}"
sentence = "Person #{args.named.first} directly authored #{commits} commits" \
" and co-authored #{coauthorships} commits" \
" to #{args[:repos].join(", ")}"
sentence += if args[:from] && args[:to]
" between #{args[:from]} and #{args[:to]}"
elsif args[:from]