1
0
Fork 0
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:
naruse 2015-02-23 09:30:24 +00:00
parent 0d20fbe3bd
commit a525fbf06f

View file

@ -300,6 +300,15 @@ def backport_command_string
" backport --ticket=#{@issue} #{@changesets.join(',')}"
end
def status_char(obj)
case obj["name"]
when "Closed"
"C".color(bold: true)
else
obj["name"][0]
end
end
console = IO.console
row, col = console.winsize
@query['limit'] = row - 2
@ -326,7 +335,7 @@ while true
puts "#{from}-#{to} / #{total}"
issues.each_with_index do |x, i|
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
when /\A(?:show +)?(\d+)\z/
id = $1.to_i