Harrison (Harry) Cramer
2023-06-30 16:35:50 -04:00
committed by GitHub
parent 4069b95b3d
commit 23a21b867b
6 changed files with 24 additions and 36 deletions

View File

@@ -1,7 +1,6 @@
local u = require("gitlab.utils")
local NuiTree = require("nui.tree")
local job = require("gitlab.job")
local notify = require("notify")
local state = require("gitlab.state")
local Job = require("plenary.job")
local Popup = require("nui.popup")
@@ -29,7 +28,7 @@ M.send_reply = function(text)
state.tree:render()
local buf = vim.api.nvim_get_current_buf()
u.darken_metadata(buf, '')
notify("Sent reply!")
vim.notify("Sent reply!", vim.log.levels.INFO)
end)
end)
end
@@ -45,7 +44,7 @@ M.list_discussions = function()
if data_ok and data ~= nil then
local status = (data.status >= 200 and data.status < 300) and "success" or "error"
if status == "error" then
notify("Could not fetch discussions!", "error")
vim.notify("Could not fetch discussions!", vim.log.levels.ERROR)
return
end
M.discussions = data.discussions
@@ -88,7 +87,7 @@ M.list_discussions = function()
end
end,
on_stderr = function(_, output)
notify("Could not run approve command!", "error")
vim.notify("Could not run approve command!", vim.log.levels.ERROR)
error(output)
end,
}):start()