dev-cmd/contributions: Start output with the name/email

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
This commit is contained in:
Issy Long 2022-08-03 10:17:48 +01:00
parent 0c7825accd
commit 5ecdf10e27
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -65,7 +65,7 @@ module Homebrew
coauthorships += git_log_coauthor_cmd(T.must(repo_path), args) coauthorships += git_log_coauthor_cmd(T.must(repo_path), args)
end end
sentence = "Person #{args.named.first} directly authored #{commits} commits " \ sentence = "#{args.named.first} directly authored #{commits} commits " \
"and co-authored #{coauthorships} commits " \ "and co-authored #{coauthorships} commits " \
"across #{all_repos ? "all Homebrew repos" : repos.to_sentence}" "across #{all_repos ? "all Homebrew repos" : repos.to_sentence}"
sentence += if args.from && args.to sentence += if args.from && args.to