import { GitLabReviewActionCliGateway } from '../../../modules/review-execution/interface-adapters/gateways/cli/reviewAction.gitlab.cli.gateway.js';
import { GitHubReviewActionCliGateway } from '../../../modules/review-execution/interface-adapters/gateways/cli/reviewAction.github.cli.gateway.js';
/**
 * @deprecated Use GitLabReviewActionCliGateway or GitHubReviewActionCliGateway directly
 */
export async function executeActionsFromContext(context, localPath, _logger, executor, baseUrl = null) {
    const gatewayContext = {
        projectPath: context.projectPath,
        mrNumber: context.mergeRequestNumber,
        localPath,
        diffMetadata: context.diffMetadata,
        baseUrl,
    };
    const gateway = context.platform === 'gitlab'
        ? new GitLabReviewActionCliGateway(executor)
        : new GitHubReviewActionCliGateway(executor);
    return gateway.execute(context.actions, gatewayContext);
}
//# sourceMappingURL=contextActionsExecutor.js.map