Merge pull request #8362 from dtrodrigues/automerge-plural

pr-automerge: pluralize message only when needed
This commit is contained in:
Dustin Rodrigues 2020-08-17 21:57:08 -04:00 committed by GitHub
commit 72419630b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ module Homebrew
return return
end end
ohai "#{prs.size} matching pull requests:" ohai "#{prs.count} matching pull #{"request".pluralize(prs.count)}:"
pr_urls = [] pr_urls = []
prs.each do |pr| prs.each do |pr|
puts "#{tap.full_name unless tap.core_tap?}##{pr["number"]}: #{pr["title"]}" puts "#{tap.full_name unless tap.core_tap?}##{pr["number"]}: #{pr["title"]}"