You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run :h gitlab.nvim.troubleshooting and followed the steps there
Setup Configuration and Environment
Use this minimal config:
-- This is a minimal init.lua that is used for debugginglocalroot=vim.fn.stdpath("run") .."/nvim/mininit"vim.fn.mkdir(root, "p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"harrisoncramer/gitlab.nvim",
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 binaryconfig=function()
require("gitlab").setup()
end,
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
Bug Description
In a project with more than 150 merge requests, when I run a command like this: :lua require("gitlab").choose_merge_request({state="all"}), I can only choose between 20 merge requests. The same happens with I try to limit the MRs to state="merged" or state="closed" - I can always only see at most 20 MRs, even if I can verify on Gitlab in the browser, that there are more of them in the respective category. This makes it impossible to select some of the closed/merged MRs.
Reproduction Steps
Check out the feature branch
Open Neovim with the minimal init from above.
Run :lua require("gitlab").choose_merge_request({state="merged"})
The text was updated successfully, but these errors were encountered:
The limit in Gitlab's APIs are 20 by default when listing merge requests (see the per_page parameter here: https://docs.gitlab.com/ee/api/merge_requests.html). We could adjust that limit, but it probably makes more sense to implement pagination to run through all the results and build a response that includes everything
Similar issue to this one, which I know has been blocked by a lack of movement on the go-gitlab side of things: #182
Prerequsities
:h gitlab.nvim.troubleshooting
and followed the steps thereSetup Configuration and Environment
Use this minimal config:
Bug Description
In a project with more than 150 merge requests, when I run a command like this:
:lua require("gitlab").choose_merge_request({state="all"})
, I can only choose between 20 merge requests. The same happens with I try to limit the MRs tostate="merged"
orstate="closed"
- I can always only see at most 20 MRs, even if I can verify on Gitlab in the browser, that there are more of them in the respective category. This makes it impossible to select some of the closed/merged MRs.Reproduction Steps
:lua require("gitlab").choose_merge_request({state="merged"})
The text was updated successfully, but these errors were encountered: