summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-28 14:07:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-28 14:10:04 +0900
commit603d79952037768723247da12d9b093446446941 (patch)
tree3dbf765efab29d4d53deae1dc62c3697165fedc8
parent522d4cd32f7727886f4fcbc28ed29c08d361ee20 (diff)
sync_default_gems.rb: message when no commits [ci skip]
-rw-r--r--tool/sync_default_gems.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index bd6d8d9..5dee884 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -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 "----"