aboutsummaryrefslogtreecommitdiffstats
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-14 11:04:52 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-14 11:04:52 +0000
commitad10418eab9c70f188d8735ccd1e6f2e160c64e2 (patch)
treefa120bf9ec196c21f03ceaaa6784f7fe4fc4469f /tool/redmine-backporter.rb
parent4d727639b45a43e73ec8588e837f74315dafa619 (diff)
downloadruby-ad10418eab9c70f188d8735ccd1e6f2e160c64e2.tar.gz
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
Diffstat (limited to 'tool/redmine-backporter.rb')
-rwxr-xr-xtool/redmine-backporter.rb5
1 files 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)