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,9 +6,11 @@ local M = {}
local refresh_status_state = function(data)
u.notify(data.message, vim.log.levels.INFO)
state.load_new_state("mergeability", function()
state.load_new_state("info", function()
require("gitlab.actions.summary").update_summary_details()
end)
end)
end
M.approve = function()

View File

@@ -114,7 +114,7 @@ end
---@return string[]
local make_mergeability_checks = function()
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]
if status == nil then
u.notify(string.format("Unknown mergeability check status: %s", check.status), vim.log.levels.ERROR)

View File

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