summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 09:30:24 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-23 09:30:24 +0000
commita525fbf06fd07e31ebe49b9b41685f2863c20afe (patch)
treec93ed84feedc41281f0a34c72bca5405c7552b9b /tool
parent0d20fbe3bd654faf6be82a00ea140880a9d9481a (diff)
bold closed tickets
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/redmine-backporter.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index c50d2a3..865c164 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -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