export class GitLabNoteCommentPostCliGateway {
    executor;
    constructor(executor) {
        this.executor = executor;
    }
    async postComment(input) {
        const encodedProject = input.projectPath.replace(/\//g, '%2F');
        const command = `glab api --method POST projects/${encodedProject}/merge_requests/${input.mrNumber}/notes --field body=${JSON.stringify(input.body)}`;
        this.executor(command);
    }
}
//# sourceMappingURL=noteCommentPost.gitlab.cli.gateway.js.map