Feat: Remove Requirement for Dotfile (#84)
This MR removes the requirement for a dotfile (the dotfile is now optional and will override the configuration provided via environment variables). The requirement for providing a project ID is also eliminated, by parsing the namespace and project name from the SSH or HTTPS remote, and then using that to query Gitlab for a matching project.
This commit is contained in:
committed by
GitHub
parent
38df51bfbc
commit
80b597e56a
@@ -3,7 +3,6 @@
|
||||
local server = require("gitlab.server")
|
||||
local job = require("gitlab.job")
|
||||
local state = require("gitlab.state")
|
||||
local u = require("gitlab.utils")
|
||||
|
||||
local M = {}
|
||||
|
||||
@@ -48,9 +47,11 @@ M.sequence = function(dependencies, cb)
|
||||
local handler = async:new()
|
||||
handler:init(cb)
|
||||
|
||||
if not state.is_gitlab_project then
|
||||
u.notify("The gitlab.nvim state was not set. Do you have a .gitlab.nvim file configured?", vim.log.levels.ERROR)
|
||||
return
|
||||
-- Sets configuration for plugin, if not already set
|
||||
if not state.initialized then
|
||||
if not state.setPluginConfiguration() then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
if state.go_server_running then
|
||||
|
||||
Reference in New Issue
Block a user