sync_tool.rake: Fold too long message [ci skip]

Split into title and body, like as the pull-request.
This commit is contained in:
Nobuyoshi Nakada 2023-04-29 00:46:35 +09:00
Родитель d887cd5ea1
Коммит 74028c210c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -23,7 +23,7 @@ repos = %w[
branch_name = "update-test-lib-#{Time.now.strftime("%Y%m%d")}" branch_name = "update-test-lib-#{Time.now.strftime("%Y%m%d")}"
title = "Update test libraries from ruby/ruby #{Time.now.strftime("%Y-%m-%d")}" title = "Update test libraries from ruby/ruby #{Time.now.strftime("%Y-%m-%d")}"
commit = `git rev-parse HEAD`.chomp commit = `git rev-parse HEAD`.chomp
message = "Update test libraries from https://github.com/ruby/ruby/commit/#{commit}" message = "From https://github.com/ruby/ruby/commit/#{commit}"
update = true update = true
keep = nil keep = nil
@ -76,7 +76,7 @@ repos.each do |repo|
system "git add #{file}" system "git add #{file}"
end end
if IO.popen(%W"git commit -m #{message}", &:read).chomp =~ /nothing to commit/ if IO.popen(%W"git commit -m #{title}\n\n#{message}", &:read).chomp =~ /nothing to commit/
puts "#{repo}: nothing to update" puts "#{repo}: nothing to update"
elsif update elsif update
system(*%W"git push") system(*%W"git push")