-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Prerequsities
- [х] I'm on the latest version of the plugin
- [х] I've installed the required dependencies
- [х] I've run
:h gitlab.nvim.troubleshootingand followed the steps there
Setup Configuration and Environment
return {
'harrisoncramer/gitlab.nvim',
-- version = '3.3.11',
-- branch = 'develop',
dependencies = {
{ 'MunifTanjim/nui.nvim' },
{ 'nvim-lua/plenary.nvim' },
'sindrets/diffview.nvim',
'stevearc/dressing.nvim', -- Recommended but not required. Better UI for pickers.
'nvim-tree/nvim-web-devicons', -- Recommended but not required. Icons in discussion tree.
},
enabled = true,
build = function() require('gitlab.server').build(true) end, -- Builds the Go binary
config = function()
require('gitlab').setup({
discussion_tree = { -- The discussion tree that holds all comments
auto_open = false, -- Automatically open when the reviewer is opened
},
create_mr = {
delete_branch = true,
squash = true,
},
})
-- For squash = true and delete_branch = true
local gitlab = require('gitlab')
local original_merge = gitlab.merge
gitlab.merge = function(opts)
opts = opts or {}
opts.squash = true -- Всегда squash = true
opts.delete_branch = true -- Всегда delete_branch = true
original_merge(opts)
end
end,
}
Bug Description
Review do not start after call lua require('gitlab').review()
Second call work as usual.
Reproduction Steps
- Check out the feature branch
- Open Neovim
- Call
lua require('gitlab').review() - Nothing happened
- Call again
- Work as usual
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels