Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74864a7

Browse files
committed
fix(gh.render): added support for olderStatusContext checks.Closes#2407
1 parent40cc55b commit74864a7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

‎lua/snacks/gh/render.lua‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,18 @@ M.props = {
136136
end
137137
localworkflows= {}---@typetable<string,string>
138138
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
139+
localstatus,name=nil,nil---@typestring,string
140+
ifcheck.__typename=="CheckRun"then
141+
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+
end
142151
end
143152
localstats= {}---@typetable<string,number>
144153
for_,statusinpairs(workflows)do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp