ci: format

This commit is contained in:
Barrett Ruth 2026-03-28 00:25:05 -04:00
parent 5fcbcfcf99
commit c9d271c7a6
No known key found for this signature in database
GPG key ID: A6C96C9349D2FC81
3 changed files with 89 additions and 22 deletions

View file

@ -134,16 +134,23 @@ local function pr_actions(f, num)
local wt_path = vim.fs.normalize(root .. '/../' .. branch)
forge_mod.log_now(('fetching %s #%s into worktree...'):format(kind, num))
vim.system(fetch_cmd, { text = true }, function()
vim.system({ 'git', 'worktree', 'add', wt_path, branch }, { text = true }, function(result)
vim.schedule(function()
if result.code == 0 then
vim.notify(('[forge]: worktree at %s'):format(wt_path))
else
vim.notify('[forge]: ' .. cmd_error(result, 'worktree failed'), vim.log.levels.ERROR)
end
vim.cmd.redraw()
end)
end)
vim.system(
{ 'git', 'worktree', 'add', wt_path, branch },
{ text = true },
function(result)
vim.schedule(function()
if result.code == 0 then
vim.notify(('[forge]: worktree at %s'):format(wt_path))
else
vim.notify(
'[forge]: ' .. cmd_error(result, 'worktree failed'),
vim.log.levels.ERROR
)
end
vim.cmd.redraw()
end)
end
)
end)
end,
},