mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/redmine-backporter.rb: support adding related revisions
to issues. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c7124d811f
commit
84a4125471
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jan 16 18:42:58 2015 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* tool/redmine-backporter.rb: support adding related revisions
|
||||||
|
to issues.
|
||||||
|
|
||||||
Fri Jan 16 17:20:33 2015 Koichi Sasada <ko1@atdot.net>
|
Fri Jan 16 17:20:33 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
vm.c, vm_core.h: constify VM_CF_LEP, VM_CF_PREV_EP, VM_CF_BLOCK_PTR
|
vm.c, vm_core.h: constify VM_CF_LEP, VM_CF_PREV_EP, VM_CF_BLOCK_PTR
|
||||||
|
|
|
@ -298,7 +298,18 @@ eom
|
||||||
end
|
end
|
||||||
more(sio)
|
more(sio)
|
||||||
|
|
||||||
|
when /\Arel +(\d+)\z/
|
||||||
|
# this feature requires custom redmine which allows add_related_issue API
|
||||||
|
rev = $1.to_i
|
||||||
|
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/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)
|
||||||
|
puts res.body
|
||||||
|
end
|
||||||
|
|
||||||
when 's'
|
when 's'
|
||||||
|
# this feature implies backport command which wraps tool/merger.rb
|
||||||
unless @issue
|
unless @issue
|
||||||
puts "ticket not selected"
|
puts "ticket not selected"
|
||||||
next
|
next
|
||||||
|
|
Loading…
Reference in a new issue