Skip to content

Commit

Permalink
Merge pull request #17889 from Homebrew/revert-17887-contributions-sh…
Browse files Browse the repository at this point in the history
…ow-only-csv-in-csv-mode
  • Loading branch information
p-linnane authored Jul 28, 2024
2 parents df6b06c + 9e98bbf commit c16f79a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/Homebrew/dev-cmd/contributions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,17 @@ def run
contributions <<
"#{Utils.pluralize("time", grand_totals[username].values.sum, include_count: true)} (total)"

next if args.csv?

puts [
"#{username} contributed",
*contributions.to_sentence,
"#{time_period(from:, to: args.to)}.",
].join(" ")
end

puts generate_csv(grand_totals) if args.csv?
return unless args.csv?

puts
puts generate_csv(grand_totals)
end

private
Expand Down

0 comments on commit c16f79a

Please sign in to comment.