Merge pull request #533 from jakubbortlik/fix/check-local-in-sync-before-commenting

feat: check local branch state when creating comments
This commit is contained in:
Harrison (Harry) Cramer
2026-03-17 20:37:34 -04:00
committed by GitHub
6 changed files with 70 additions and 46 deletions

View File

@@ -3,16 +3,17 @@
-- This module is also responsible for ensuring that the state of the plugin
-- is valid via dependencies
local git = require("gitlab.git")
local u = require("gitlab.utils")
local List = require("gitlab.utils.list")
local M = {}
M.emoji_map = nil
local M = {
emoji_map = nil,
ahead_behind = { nil, nil },
}
---Returns a gitlab token, and a gitlab URL. Used to connect to gitlab.
---@return string|nil, string|nil, string|nil
M.default_auth_provider = function()
local git = require("gitlab.git")
local base_path, err = M.settings.config_path, nil
if base_path == nil then
base_path, err = git.base_dir()