Switch GitLab MR creation from CLI to REST API #23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Switch GitLab MR creation from CLI (
glab) to REST API calls, following the existing issue-fetching pattern.Motivation
glabCLI dependency for GitLab-origin repos.GitLabIssueClient).Acceptance Criteria
GitLabMrClientclass insrc/gitlab/services/gitLabMrClient.tsMrClientinterface withcreateMr(input): Promise<CreateMrResult>POST /api/v4/projects/{id}/merge_requestsendpointHttpFetch/withRetryinfrastructuregitRunnerrunMrStageupdated to useGitLabMrClientforgitlabplatformGitLabMrClient(success, 401, 403, 404, 429, 500, malformed response)mr-result.jsonschema unchangedglabCLI in the GitLab code pathImplementation Steps
GitLabMrClientclass mirroringGitLabIssueClientrunMrStageto use deterministic git + REST for GitLabdefaultMrSkillBodynpm testandnpm run lintpassRelated
docs/design-rest-mr-creation.mddocs/implementation-plan-rest-mr.md(Milestone M3)pi-loop opened and merged a pull request for this issue: #188