mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
08e96e69c3
commit
4b1784c669
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Jan 20 12:58:33 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* tool/redmine-backporter.rb: now can change the page of `ls`.
|
||||||
|
|
||||||
Tue Jan 20 12:28:37 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Jan 20 12:28:37 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* tool/redmine-backporter.rb (readline): fallback to normal gets on
|
* tool/redmine-backporter.rb (readline): fallback to normal gets on
|
||||||
|
|
|
@ -267,8 +267,8 @@ while true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
case l
|
case l
|
||||||
when 'ls'
|
when /\Als(?: +(\d+))?\z/
|
||||||
uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query))
|
uri = URI(REDMINE_BASE+'/projects/ruby-trunk/issues.json?'+URI.encode_www_form(@query.dup.merge('page' => ($1 ? $1.to_i : 1)))
|
||||||
# puts uri
|
# puts uri
|
||||||
res = JSON(uri.read(openuri_options))
|
res = JSON(uri.read(openuri_options))
|
||||||
@issues = issues = res["issues"]
|
@issues = issues = res["issues"]
|
||||||
|
@ -442,7 +442,7 @@ eom
|
||||||
when nil, 'quit', 'exit'
|
when nil, 'quit', 'exit'
|
||||||
exit
|
exit
|
||||||
when 'help'
|
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 '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 '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'
|
puts 'rel REVISION '.color(bold: true) + ' add the selected ticket as related to the REVISION'
|
||||||
|
|
Loading…
Reference in a new issue