fix: use correct dependency key
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user