"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISSUE_START_CLI_USAGE = exports.ISSUE_APPROVE_CLI_USAGE = void 0;
exports.buildIssueApproveCliCommand = buildIssueApproveCliCommand;
exports.buildIssueStartCliCommand = buildIssueStartCliCommand;
exports.buildForeignApprovalSummary = buildForeignApprovalSummary;
exports.buildForeignApprovalNext = buildForeignApprovalNext;
exports.buildStartApprovalNext = buildStartApprovalNext;
exports.getIssueApproveCommentCommand = getIssueApproveCommentCommand;
exports.getIssueStartCommentCommand = getIssueStartCommentCommand;
const branding_1 = require("../core/branding");
const catalog_1 = require("../i18n/catalog");
exports.ISSUE_APPROVE_CLI_USAGE = "issue approve --issue <id>";
exports.ISSUE_START_CLI_USAGE = "issue start --issue <id>";
function buildIssueApproveCliCommand(issueId) {
    return `${branding_1.CLI_COMMAND_NAME} issue approve --issue ${issueId}`;
}
function buildIssueStartCliCommand(issueId) {
    return `${branding_1.CLI_COMMAND_NAME} issue start --issue ${issueId}`;
}
function buildForeignApprovalSummary(locale, issueId) {
    return (0, catalog_1.translate)(locale, "run.foreignApproval.summary", {
        issueApproveCommand: buildIssueApproveCliCommand(issueId),
    });
}
function buildForeignApprovalNext(locale, issueId) {
    return (0, catalog_1.translate)(locale, "run.commentNext.foreignApproval", {
        issueApproveCommand: buildIssueApproveCliCommand(issueId),
    });
}
function buildStartApprovalNext(locale, issueId) {
    return (0, catalog_1.translate)(locale, "run.commentNext.startApproval.manual", {
        issueStartCommand: buildIssueStartCliCommand(issueId),
    });
}
function getIssueApproveCommentCommand() {
    return branding_1.ISSUE_COMMENT_APPROVE_COMMAND;
}
function getIssueStartCommentCommand() {
    return branding_1.ISSUE_COMMENT_START_COMMAND;
}
