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:
parent
522d4cd32f
commit
603d799520
1 changed files with 5 additions and 0 deletions
|
@ -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 "----"
|
||||
|
|
Loading…
Reference in a new issue