ruby-changes:54605
From: nagachika <ko1@a...>
Date: Mon, 14 Jan 2019 20:04:57 +0900 (JST)
Subject: [ruby-changes:54605] nagachika:r66820 (trunk): update redmine-backporter to catch up Redmine 4.0. [ci skip]
nagachika 2019-01-14 20:04:52 +0900 (Mon, 14 Jan 2019) New Revision: 66820 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66820 Log: update redmine-backporter to catch up Redmine 4.0. [ci skip] tool/redmine-backporter.rb: change revision resource URL. Modified files: trunk/tool/redmine-backporter.rb Index: tool/redmine-backporter.rb =================================================================== --- tool/redmine-backporter.rb (revision 66819) +++ tool/redmine-backporter.rb (revision 66820) @@ -306,8 +306,9 @@ end https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L306 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 https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L419 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/