1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nagachika 2019-01-14 11:04:52 +00:00
parent 4d727639b4
commit ad10418eab

View file

@ -306,8 +306,9 @@ end
def backport_command_string def backport_command_string
unless @changesets.respond_to?(:validated) unless @changesets.respond_to?(:validated)
@changesets = @changesets.select do |c| @changesets = @changesets.select do |c|
# check if the revision is included in trunk
begin 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) uri.read($openuri_options)
true true
rescue rescue
@ -418,7 +419,7 @@ eom
next next
end end
rev = $1 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| Net::HTTP.start(uri.host, uri.port, http_options) do |http|
res = http.post(uri.path, "issue_id=#@issue", res = http.post(uri.path, "issue_id=#@issue",
'X-Redmine-API-Key' => REDMINE_API_KEY) 'X-Redmine-API-Key' => REDMINE_API_KEY)