Skip to content

Commit

Permalink
ui: add more checks details
Browse files Browse the repository at this point in the history
add some more details to the checks tree to monitor the status of CI
runs.

Signed-off-by: ldelossa <louis.delos@gmail.com>
  • Loading branch information
ldelossa committed May 16, 2022
1 parent e238331 commit f766943
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/litee/gh/pr/checks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ function M.build_checks_tree(checks, depth, prev_tree)
c_node.expanded = true
table.insert(root.children, c_node)
end

table.sort(root.children, function(a,b)
return a.name < b.name
end)

return root
end

Expand Down
8 changes: 8 additions & 0 deletions lua/litee/gh/pr/marshal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ function M.marshal_pr_commit_node(node)
icon = icon_set["PassFilled"]
elseif node.check["conclusion"] == "failure" then
icon = icon_set["CircleStop"]
elseif node.check["conclusion"] == "skipped" then
icon = icon_set["CircleSlash"]
elseif node.check["status"] == "in_progress" then
icon = icon_set["Sync"]
detail = "in progress"
elseif node.check["status"] == "queued" then
icon = icon_set["CirclePause"]
detail = "queued"
else
icon = icon_set["Info"]
end
Expand Down

0 comments on commit f766943

Please sign in to comment.