ruby-changes:37201
From: naruse <ko1@a...>
Date: Fri, 16 Jan 2015 18:49:18 +0900 (JST)
Subject: [ruby-changes:37201] naruse:r49282 (trunk): * tool/redmine-backporter.rb: support adding related revisions
naruse 2015-01-16 18:48:57 +0900 (Fri, 16 Jan 2015) New Revision: 49282 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49282 Log: * tool/redmine-backporter.rb: support adding related revisions to issues. Modified files: trunk/ChangeLog trunk/tool/redmine-backporter.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49281) +++ ChangeLog (revision 49282) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jan 16 18:42:58 2015 NARUSE, Yui <naruse@r...> + + * tool/redmine-backporter.rb: support adding related revisions + to issues. + Fri Jan 16 17:20:33 2015 Koichi Sasada <ko1@a...> vm.c, vm_core.h: constify VM_CF_LEP, VM_CF_PREV_EP, VM_CF_BLOCK_PTR Index: tool/redmine-backporter.rb =================================================================== --- tool/redmine-backporter.rb (revision 49281) +++ tool/redmine-backporter.rb (revision 49282) @@ -298,7 +298,18 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L298 end 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' + # this feature implies backport command which wraps tool/merger.rb unless @issue puts "ticket not selected" next -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/