From ad10418eab9c70f188d8735ccd1e6f2e160c64e2 Mon Sep 17 00:00:00 2001 From: nagachika Date: Mon, 14 Jan 2019 11:04:52 +0000 Subject: [PATCH] update redmine-backporter to catch up Redmine 4.0. [ci skip] tool/redmine-backporter.rb: change revision resource URL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/redmine-backporter.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 00eafed96e..a3e96e4aaa 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -306,8 +306,9 @@ end def backport_command_string unless @changesets.respond_to?(:validated) @changesets = @changesets.select do |c| + # check if the revision is included in trunk begin - uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/revisions/#{c}") + uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/trunk/revisions/#{c}") uri.read($openuri_options) true rescue @@ -418,7 +419,7 @@ eom next end rev = $1 - uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/revisions/#{rev}/issues.json") + uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/trunk/revisions/#{rev}/issues.json") Net::HTTP.start(uri.host, uri.port, http_options) do |http| res = http.post(uri.path, "issue_id=#@issue", 'X-Redmine-API-Key' => REDMINE_API_KEY)