Switch Forgejo MR creation from CLI to REST API #21
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 Forgejo MR/PR creation from CLI (
fj) to REST API calls, following the existing issue-fetching pattern.Motivation
fjCLI dependency for Forgejo-origin repos.ForgejoIssueClient).Acceptance Criteria
ForgejoMrClientclass insrc/forgejo/services/forgejoMrClient.tsMrClientinterface withcreateMr(input): Promise<CreateMrResult>POST /api/v1/repos/{owner}/{repo}/pullsendpointHttpFetch/withRetryinfrastructuregitRunnerrunMrStageupdated to useForgejoMrClientforforgejoplatformForgejoMrClient(success, 401, 403, 404, 429, 500, malformed response)mr-result.jsonschema unchangedfjCLI in the Forgejo code pathImplementation Steps
ForgejoMrClientclass mirroringForgejoIssueClientrunMrStageto use deterministic git + REST for ForgejodefaultMrSkillBodynpm testandnpm run lintpassRelated
docs/design-rest-mr-creation.mddocs/implementation-plan-rest-mr.md(Milestone M1)