Connect to GitLab from onboarding and the host picker #141
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
Even with the adapter built, nobody can pick GitLab: onboarding lists it as "coming soon", connecting rejects the type, and the sign-in screen has no GitLab token page or scopes. Parent: #137. Depends on #138; pick this up after #138 merges.
Acceptance criteria
https://gitlab.comfor GitLab and accepts a self-managed address (design.md → Onboarding step 3, as for GitHub; #137).<web root>/-/user_settings/personal_access_tokens?name=lazyforge&scopes=apiand lists the one scope needed:api(repos, MRs, pipelines, merging, approving, closing, issues, comments, labels, Renovate dashboard ticks, running Renovate).read_apiis not enough. Failure messages name GitLab's scope (design.md → Onboarding step 4).type = "gitlab"connects from the picker,--hostand Settings → add host (design.md → Settings).HostInfo.ChangeRequestTerm). Check every user-facing "PR" string reads the term.docs/design.mdrecords the GitLab token page and scope under Onboarding step 4, moves the GitLab adapter out of "After v1" (the PM's call on 2026-10-12, #137), and the README lists GitLab as supported.Plan
cmd/lazyforge/main.go:connectsendsgitlabtogitlab.New(default URLhttps://gitlab.comwhen the config omits it, as github does). Addgitlab.Probeto the probe list after gitea and github.internal/ui/onboarding.go: raiseselectableForgesto 4. Add agitlabHelpentry to the per-kind help table and pre-fill the address for GitLab. Update the onboarding test that expects GitLab to be "coming soon".internal/uiagainstChangeRequestTerm.Update/Viewfor the GitLab path, cmd test thatconnectroutesgitlab. Verify in tmux at 80x24.Context
internal/ui/onboarding.go(forgeRows,selectableForges,forgeHelp,helpFor,signInError). Connect:cmd/lazyforge/main.go:125-152.glab auth tokencan serve as atoken_cmd.Out of scope
The
[3]box title on GitLab (#145). The adapter itself (#138–#140).🤖 Decision needed: what should box
[3]be called on a GitLab host? design.md names it "Actions", which is Forgejo's and GitHub's word. GitLab calls the same thing "Pipelines".Recommendation: 1. It follows the PR/MR precedent, and GitLab users won't go looking for an "Actions" box.
The rest of this ticket doesn't depend on the answer. It's parked only so this gets settled before it ships.
🤖 The box
[3]naming question moved to #145, so this ticket is unparked.🤖 Picked up through composer-lite on branch
feature/141-gitlab-connect; the plan is this ticket body.🤖 Amended in delivery: the Sign in link drops the
?name=lazyforge&scopes=apiprefill, because the full URL clips at 80 columns. Theapiscope is still listed under the link.🤖 MR open: #146
🤖 merged: #146