export class GitLabApprovalRevocationCliGateway {
    executor;
    constructor(executor) {
        this.executor = executor;
    }
    async revoke(input) {
        const encodedProject = input.projectPath.replace(/\//g, '%2F');
        const command = `glab api --method POST projects/${encodedProject}/merge_requests/${input.mrNumber}/approvals/unapprove`;
        this.executor(command);
    }
}
//# sourceMappingURL=approvalRevocation.gitlab.cli.gateway.js.map