Skip to content

Commit 7171f4c

Browse files
authored
Fix: Publish all drafts (#391)
* fix: use body with /mr/draft_notes/publish endpoint * docs: notify about successfully building server
1 parent 125cfbb commit 7171f4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/gitlab/actions/draft_notes/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ end
8484

8585
---Publishes all draft notes and comments. Re-renders all discussion views.
8686
M.confirm_publish_all_drafts = function()
87-
local body = {}
87+
local body = { publish_all = true }
8888
job.run_job("/mr/draft_notes/publish", "POST", body, function(data)
8989
u.notify(data.message, vim.log.levels.INFO)
9090
state.DRAFT_NOTES = {}

lua/gitlab/server.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ M.build = function(override)
100100
u.notify("Could not install gitlab.nvim!", vim.log.levels.ERROR)
101101
return false
102102
end
103+
u.notify("Gitlab.nvim installed successfully!", vim.log.levels.INFO)
103104
return true
104105
end
105106

0 commit comments

Comments
 (0)