"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveServiceRuntimeApprovalAssigneeGate = resolveServiceRuntimeApprovalAssigneeGate;
const assignee_resolution_1 = require("../../workflows/assignee-resolution");
function resolveServiceRuntimeApprovalAssigneeGate(input) {
    const gate = (0, assignee_resolution_1.resolveWorkflowAssigneeGate)({
        assignees: input.issue.assignees,
    });
    if (gate.kind !== "ok") {
        return "single-assignee-required";
    }
    return gate.assignee === input.comment.author ? null : "assignee-only";
}
