ci: resolve lua typechecks

This commit is contained in:
Barrett Ruth 2026-03-28 12:46:12 -04:00
parent 4ae7439a75
commit 9be38e3b00
No known key found for this signature in database
GPG key ID: A6C96C9349D2FC81
5 changed files with 20 additions and 17 deletions

View file

@ -633,7 +633,11 @@ function M.format_check(check)
end
end
end
return hl(group, icon) .. ' ' .. pad_or_truncate(name, widths.name) .. ' ' .. hl('ForgeDim', elapsed)
return hl(group, icon)
.. ' '
.. pad_or_truncate(name, widths.name)
.. ' '
.. hl('ForgeDim', elapsed)
end
---@param run forge.CIRun
@ -659,13 +663,18 @@ function M.format_run(run)
local age = relative_time(run.created_at)
if run.branch ~= '' then
local name_w = widths.name - widths.branch + 10
return hl(group, icon) .. ' '
.. pad_or_truncate(run.name, name_w) .. ' '
.. hl('ForgeBranch', pad_or_truncate(run.branch, widths.branch)) .. ' '
return hl(group, icon)
.. ' '
.. pad_or_truncate(run.name, name_w)
.. ' '
.. hl('ForgeBranch', pad_or_truncate(run.branch, widths.branch))
.. ' '
.. hl('ForgeDim', ('%-6s'):format(event) .. ' ' .. age)
end
return hl(group, icon) .. ' '
.. pad_or_truncate(run.name, widths.name) .. ' '
return hl(group, icon)
.. ' '
.. pad_or_truncate(run.name, widths.name)
.. ' '
.. hl('ForgeDim', ('%-6s'):format(event) .. ' ' .. age)
end