fix: use correct dependency key
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -498,7 +498,7 @@ M.dependencies = {
|
||||
},
|
||||
mergeability = {
|
||||
endpoint = "/mr/info/mergeability",
|
||||
key = "MergeabilityChecks",
|
||||
key = "mergeability_checks",
|
||||
state = "MERGEABILITY",
|
||||
refresh = false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user