fix: use correct dependency key

This commit is contained in:
Jakub F. Bortlík
2026-03-03 00:16:57 +01:00
parent 8b282b7758
commit 6ed09564b7
3 changed files with 6 additions and 4 deletions

View File

@@ -6,8 +6,10 @@ local M = {}
local refresh_status_state = function(data) local refresh_status_state = function(data)
u.notify(data.message, vim.log.levels.INFO) u.notify(data.message, vim.log.levels.INFO)
state.load_new_state("info", function() state.load_new_state("mergeability", function()
require("gitlab.actions.summary").update_summary_details() state.load_new_state("info", function()
require("gitlab.actions.summary").update_summary_details()
end)
end) end)
end end

View File

@@ -114,7 +114,7 @@ end
---@return string[] ---@return string[]
local make_mergeability_checks = function() local make_mergeability_checks = function()
local lines = {} local lines = {}
for _, check in ipairs(state.MERGEABILITY.mergeability_checks) do for _, check in ipairs(state.MERGEABILITY) do
local status = state.settings.mergeability_checks.statuses[check.status] local status = state.settings.mergeability_checks.statuses[check.status]
if status == nil then if status == nil then
u.notify(string.format("Unknown mergeability check status: %s", check.status), vim.log.levels.ERROR) u.notify(string.format("Unknown mergeability check status: %s", check.status), vim.log.levels.ERROR)

View File

@@ -498,7 +498,7 @@ M.dependencies = {
}, },
mergeability = { mergeability = {
endpoint = "/mr/info/mergeability", endpoint = "/mr/info/mergeability",
key = "MergeabilityChecks", key = "mergeability_checks",
state = "MERGEABILITY", state = "MERGEABILITY",
refresh = false, refresh = false,
}, },