From 603d79952037768723247da12d9b093446446941 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 28 Mar 2021 14:07:18 +0900 Subject: [PATCH] sync_default_gems.rb: message when no commits [ci skip] --- tool/sync_default_gems.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index bd6d8d971a..5dee88465e 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 "----"