mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bold closed tickets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d20fbe3bd
commit
a525fbf06f
1 changed files with 10 additions and 1 deletions
|
@ -300,6 +300,15 @@ def backport_command_string
|
||||||
" backport --ticket=#{@issue} #{@changesets.join(',')}"
|
" backport --ticket=#{@issue} #{@changesets.join(',')}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def status_char(obj)
|
||||||
|
case obj["name"]
|
||||||
|
when "Closed"
|
||||||
|
"C".color(bold: true)
|
||||||
|
else
|
||||||
|
obj["name"][0]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
console = IO.console
|
console = IO.console
|
||||||
row, col = console.winsize
|
row, col = console.winsize
|
||||||
@query['limit'] = row - 2
|
@query['limit'] = row - 2
|
||||||
|
@ -326,7 +335,7 @@ while true
|
||||||
puts "#{from}-#{to} / #{total}"
|
puts "#{from}-#{to} / #{total}"
|
||||||
issues.each_with_index do |x, i|
|
issues.each_with_index do |x, i|
|
||||||
id = "##{x["id"]}".color(*PRIORITIES[x["priority"]["name"]])
|
id = "##{x["id"]}".color(*PRIORITIES[x["priority"]["name"]])
|
||||||
puts "#{'%2d' % i} #{id} #{x["priority"]["name"][0]} #{x["status"]["name"][0]} #{x["subject"][0,80]}"
|
puts "#{'%2d' % i} #{id} #{x["priority"]["name"][0]} #{status_char(x["status"])} #{x["subject"][0,80]}"
|
||||||
end
|
end
|
||||||
when /\A(?:show +)?(\d+)\z/
|
when /\A(?:show +)?(\d+)\z/
|
||||||
id = $1.to_i
|
id = $1.to_i
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue