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

@ -14,8 +14,6 @@ local M = {
},
}
---@param kind string
---@param state string
---@param state string
---@return string[]
function M:list_pr_json_cmd(state)

View file

@ -19,8 +19,6 @@ local function nwo()
return url:match('github%.com/(.+)$') or ''
end
---@param kind string
---@param state string
---@param state string
---@return string[]
function M:list_pr_json_cmd(state)

View file

@ -14,8 +14,6 @@ local M = {
},
}
---@param kind string
---@param state string
---@param state string
---@return string[]
function M:list_pr_json_cmd(state)

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

View file

@ -678,7 +678,7 @@ function M.pr(state, f)
name = 'checkout',
fn = function(selected)
with_pr_num(selected, function(num)
pr_actions(f, num)._by_name.checkout()
pr_actions(f, num)._by_name['checkout']()
end)
end,
},
@ -686,7 +686,7 @@ function M.pr(state, f)
name = 'diff',
fn = function(selected)
with_pr_num(selected, function(num)
pr_actions(f, num)._by_name.diff()
pr_actions(f, num)._by_name['diff']()
end)
end,
},
@ -694,7 +694,7 @@ function M.pr(state, f)
name = 'worktree',
fn = function(selected)
with_pr_num(selected, function(num)
pr_actions(f, num)._by_name.worktree()
pr_actions(f, num)._by_name['worktree']()
end)
end,
},
@ -702,7 +702,7 @@ function M.pr(state, f)
name = 'ci',
fn = function(selected)
with_pr_num(selected, function(num)
pr_actions(f, num)._by_name.ci()
pr_actions(f, num)._by_name['ci']()
end)
end,
},
@ -718,7 +718,7 @@ function M.pr(state, f)
name = 'manage',
fn = function(selected)
with_pr_num(selected, function(num)
pr_actions(f, num)._by_name.manage()
pr_actions(f, num)._by_name['manage']()
end)
end,
},