We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
StatusContext
1 parent40cc55b commit74864a7Copy full SHA for 74864a7
lua/snacks/gh/render.lua
@@ -136,9 +136,18 @@ M.props = {
136
end
137
localworkflows= {}---@typetable<string,string>
138
for_,checkinipairs(item.statusCheckRollupor {})do
139
-localstatus=check.status=="COMPLETED"andcheck.conclusionor"pending"
140
-status=Snacks.picker.util.title(status:lower())
141
-workflows[check.workflowName..":"..check.name]=status
+localstatus,name=nil,nil---@typestring,string
+ifcheck.__typename=="CheckRun"then
+name=check.workflowName..":"..check.name
142
+status=check.status=="COMPLETED"and (check.conclusionor"pending")orcheck.status
143
+elseifcheck.__typename=="StatusContext"then
144
+name=check.context
145
+status=check.state
146
+end
147
+ifnameandstatusthen
148
+status=Snacks.picker.util.title(status:lower())
149
+workflows[check.workflowName..":"..check.name]=status
150
151
152
localstats= {}---@typetable<string,number>
153
for_,statusinpairs(workflows)do