mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Simplify the condition expression to ignore commits
This commit is contained in:
parent
492185e39c
commit
b09e96341e
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
|
|||
files = IO.popen(%W"git diff-tree -z --no-commit-id --name-only -r #{sha}") {|f|
|
||||
f.readlines("\0", chomp: true)
|
||||
}
|
||||
subject =~ /^Merge/ || subject =~ /^Auto Merge/ || files.all?{|file| file =~ IGNORE_FILE_PATTERN}
|
||||
subject.start_with?("Merge", "Auto Merge") or files.all?(IGNORE_FILE_PATTERN)
|
||||
end
|
||||
|
||||
if commits.empty?
|
||||
|
|
Loading…
Reference in a new issue