Repository navigation
Forge features for a home project: read change requests and issues on any host the forge CLI is signed in to, without a project on that host #39288
mfroembgen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Workflow
I use one T3 project as a home base. Its threads open and link merge requests across many repositories on a self-hosted GitLab. None of those repositories is a T3 project, and the home project's own remote is on github.com. This is the multi-repository setup from #7041. #37775 covers the Git actions side of it.
What doesn't work
T3 finds forge hosts only through the git remotes of its projects. A host that no project points at stays invisible, even when
glabis signed in to it:null, and nothing in the thread says why.resolveAutoSettlementAtreturns early when any link has no snapshot (ThreadSettlementService.ts#L224). So a thread that also links GitHub PRs stays open after every one of them merges.PullRequestService.readWorkspaceProjectsandIssueServiceboth build their host lists fromprojects.listShells().GitHub, Forgejo and Bitbucket avoid this on their public hosts with
readsPublicHostWithoutCheckout(PullRequestService.ts#L1081-L1107). GitLab doesn't set it, and no self-hosted forge can. #37633 already showed that a GitLab read doesn't depend on the checkout: reads setGITLAB_HOSTand name the project in the API path. Its fix, #37638, only changed the error message.Proposal
Treat every host that the forge CLI is signed in to (
glab,gh, and so on), including self-hosted ones, as a host T3 can read without a checkout. Use it for link sync, auto-settle and the Pull Requests and Issues lists.If that is too broad, two smaller steps would still help:
Workaround today
Add any project whose remote is on the host. After that, MRs and issues from every repository on that host sync. It only works if you know about it, though: until then, auto-settle and the lists stay quietly empty.
All reactions