summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:59:03 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:59:03 +0000
commit4b1784c6695b2579ff3081ef4bab4c8a20974a8a (patch)
tree5c5aab00e3901d70af5f34e927aeef00ea889dd4 /tool
parent08e96e69c32cd284446f0bdcd3931a35eaa6ca97 (diff)
* tool/redmine-backporter.rb: now can change the page of `ls`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/redmine-backporter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 4b63eb1fb2..4815c52c0f 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -267,8 +267,8 @@ while true
break
end
case l
- when 'ls'
- uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query))
+ when /\Als(?: +(\d+))?\z/
+ uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query.dup.merge('page' => ($1 ? $1.to_i : 1)))
# puts uri
res = JSON(uri.read(openuri_options))
@issues = issues = res["issues"]
@@ -442,7 +442,7 @@ eom
when nil, 'quit', 'exit'
exit
when 'help'
- puts 'ls '.color(bold: true) + ' show all required tickets'
+ puts 'ls [PAGE] '.color(bold: true) + ' show all required tickets'
puts 'show TICKET '.color(bold: true) + ' show the detail of the TICKET, and select it'
puts 'TICKET '.color(bold: true) + ' show the backport option of the TICKET for merger.rb'
puts 'rel REVISION '.color(bold: true) + ' add the selected ticket as related to the REVISION'