Gitea/Forgejo adapter for v1 operations #6
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?
Problem
v1 targets Forgejo/Gitea. The core and UI need a real adapter that implements the
Forgeinterface against git.bobparsons.dev for every v1 operation.Plan
Implement
internal/forge/gitea, using the client chosen in the SDK spike:docs/architecture.md)forge.Approvercapability)ErrNotFound/ErrUnauthorized/ErrRateLimitedmapping, Forgejo/Gitea version detectionTests: run the
forgetestcontract suite againsthttptestservers that serve recorded responses fromtestdata/.Plan-review additions (#17)
permissionsfield), each with a disabled reason.head_commit_idfromMergeOpts; a mismatch maps to a distinct, typed error so the UI can say "this PR changed since you confirmed".Depends on
The SDK spike, the domain model /
Forgeinterface ticket, and the Actions spike (for the Actions capabilities only).Context
docs/architecture.md→ API mapping (Gitea / Forgejo column).go-development→ Layering (no SDK type leaves the adapter) and Errors.Out of scope
The GitHub and GitLab adapters.
deadstyle referenced this issue2026-10-01 22:08:47 -05:00
🤖 Merged in #27. lazyforge can now sign in to a Forgejo or Gitea host, list repos with your access level, read and merge PRs (a merge refuses if the PR changed since you looked), read and edit issues, comment, close, list releases, and on Forgejo list Actions runs, jobs and logs.