feat(forge): GitLab Repo box readers and update branch #147
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/140-gitlab-repo"
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?
Refs #140 (parent #137)
Summary
The GitLab adapter now reads READMEs, branches, branch commits, directory listings and files, and updates an MR with its target branch, so the Repo box tabs and
uwork on GitLab.uon GitLab offers rebase only (GitLab's API can't merge the target into an MR); design.md'susentences say so. architecture.md's GitLab rows are updated (unverified: no live GitLab used).Decisions
ReadFilechecksX-Gitlab-Sizewith a HEAD first and, over the preview cap, returns new sentinelforge.ErrTooLargewithout downloading; core maps it to the existing "too large" preview. The cap moved toforge.MaxReadSize(core'sMaxPreviewSizealiases it).BranchUpdatercontract:UpdateStyleslistsUpdateMergefirst when supported; the shared contract tests use the first style. Gitea and GitHub are unchanged./rawfor exact bytes (the JSON form transcodes non-UTF-8 text, hiding binaries). Rebase 202 is success; 403/409 map toErrRefusedwith GitLab's message.Test plan
go test -race ./...: 13 packages ok. Build passes.🤖 Generated with Claude Code