1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

sync_default_gems.rb: message when no commits [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-03-28 14:07:18 +09:00
parent 522d4cd32f
commit 603d799520
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -395,6 +395,11 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
subject =~ /^Merge/ || subject =~ /^Auto Merge/ || files.all?{|file| file =~ IGNORE_FILE_PATTERN}
end
if commits.empty?
puts "No commits to pick"
return
end
puts "Try to pick these commits:"
puts commits.map{|commit| commit.join(": ")}.join("\n")
puts "----"