ruby-changes:65677
From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Mar 2021 14:11:29 +0900 (JST)
Subject: [ruby-changes:65677] 603d799520 (master): sync_default_gems.rb: message when no commits [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=603d799520 From 603d79952037768723247da12d9b093446446941 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 28 Mar 2021 14:07:18 +0900 Subject: 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 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) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L395 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 "----" -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/