Release (#440)
* Feat: Enable sorting discussions by original comment (#422) * Feat: Improve popup UX (#426) * Feat: Automatically update MR summary details (#427) * Feat: Show update progress in winbar (#432) * Feat: Abbreviate winbar (#439) * Fix: Note Creation Bug (#441) * Fix: Checking whether comment can be created (#434) * Fix: Syntax in discussion tree (#433) * fix: improve indication of resolved threads and drafts (#442) * Docs: Various minor improvements (#445) --------- Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me>
This commit is contained in:
committed by
GitHub
parent
be027331e1
commit
495e64c8bc
@@ -22,6 +22,12 @@ M.delete_reviewer = function()
|
||||
M.delete_popup("reviewer")
|
||||
end
|
||||
|
||||
local refresh_user_state = function(type, data, message)
|
||||
u.notify(message, vim.log.levels.INFO)
|
||||
state.INFO[type] = data
|
||||
require("gitlab.actions.summary").update_summary_details()
|
||||
end
|
||||
|
||||
M.add_popup = function(type)
|
||||
local plural = type .. "s"
|
||||
local current = state.INFO[plural]
|
||||
@@ -39,8 +45,7 @@ M.add_popup = function(type)
|
||||
table.insert(current_ids, choice.id)
|
||||
local body = { ids = current_ids }
|
||||
job.run_job("/mr/" .. type, "PUT", body, function(data)
|
||||
u.notify(data.message, vim.log.levels.INFO)
|
||||
state.INFO[plural] = data[plural]
|
||||
refresh_user_state(plural, data[plural], data.message)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
@@ -61,7 +66,7 @@ M.delete_popup = function(type)
|
||||
local body = { ids = ids }
|
||||
job.run_job("/mr/" .. type, "PUT", body, function(data)
|
||||
u.notify(data.message, vim.log.levels.INFO)
|
||||
state.INFO[plural] = data[plural]
|
||||
refresh_user_state(plural, data[plural], data.message)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user