summaryrefslogtreecommitdiff
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-05-28 11:46:01 -0700
committerTakashi Kokubun <[email protected]>2024-05-28 11:46:15 -0700
commit13307cd9444d17dff2da1d0ff03efcede23ad88d ()
treee614f26c6fe91ad7fb11088e1979bfe5eea69662 /tool/redmine-backporter.rb
parent2608f2a23bb037f2b79e76c83d4b70716f039d1a (diff)
redmine-backporter.rb: Highlight closed tickets
-rwxr-xr-xtool/redmine-backporter.rb5
1 files changed, 3 insertions, 2 deletions
@@ -221,10 +221,11 @@ commands = {
@issues = issues = res["issues"]
from = res["offset"] + 1
total = res["total_count"]
to = from + issues.size - 1
- 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]} #{status_char(x["status"])} #{x["subject"][0,80]}"
end
},