зеркало из https://github.com/github/ruby.git
add bold to headers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
37360f82aa
Коммит
57a0021095
|
@ -267,7 +267,7 @@ while true
|
||||||
id = "##{i["id"]}".color(*PRIORITIES[i["priority"]["name"]])
|
id = "##{i["id"]}".color(*PRIORITIES[i["priority"]["name"]])
|
||||||
sio = StringIO.new
|
sio = StringIO.new
|
||||||
sio.puts <<eom
|
sio.puts <<eom
|
||||||
#{i["subject"]}
|
#{i["subject"].color(bold: true, underscore: true)}
|
||||||
#{i["project"]["name"]} [#{i["tracker"]["name"]} #{id}] #{i["status"]["name"]} (#{i["created_on"]})
|
#{i["project"]["name"]} [#{i["tracker"]["name"]} #{id}] #{i["status"]["name"]} (#{i["created_on"]})
|
||||||
author: #{i["author"]["name"]}
|
author: #{i["author"]["name"]}
|
||||||
assigned: #{i["assigned_to"].to_h["name"]}
|
assigned: #{i["assigned_to"].to_h["name"]}
|
||||||
|
@ -279,17 +279,17 @@ eom
|
||||||
#end
|
#end
|
||||||
sio.puts i["description"]
|
sio.puts i["description"]
|
||||||
sio.puts
|
sio.puts
|
||||||
sio.puts "= changesets"
|
sio.puts "= changesets".color(bold: true, underscore: true)
|
||||||
@changesets = []
|
@changesets = []
|
||||||
i["changesets"].each do |x|
|
i["changesets"].each do |x|
|
||||||
@changesets << x["revision"]
|
@changesets << x["revision"]
|
||||||
sio.puts "== #{x["revision"]} #{x["committed_on"]} #{x["user"]["name"] rescue nil}"
|
sio.puts "== #{x["revision"]} #{x["committed_on"]} #{x["user"]["name"] rescue nil}".color(bold: true, underscore: true)
|
||||||
sio.puts x["comments"]
|
sio.puts x["comments"]
|
||||||
end
|
end
|
||||||
if i["journals"] && !i["journals"].empty?
|
if i["journals"] && !i["journals"].empty?
|
||||||
sio.puts "= journals"
|
sio.puts "= journals".color(bold: true, underscore: true)
|
||||||
i["journals"].each do |x|
|
i["journals"].each do |x|
|
||||||
sio.puts "== #{x["user"]["name"]} (#{x["created_on"]})"
|
sio.puts "== #{x["user"]["name"]} (#{x["created_on"]})".color(bold: true, underscore: true)
|
||||||
x["details"].each do |y|
|
x["details"].each do |y|
|
||||||
sio.puts JSON(y)
|
sio.puts JSON(y)
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче