Repository navigation
[pull] main from Tencent:main - #1
Merged
Merged
Conversation
* feat(git): support generic private repository hosts * fix(git): address generic provider review comments * fix(git): harden generic provider portability --------- Co-authored-by: liuyuanchuang <[email protected]> Co-authored-by: yoge <[email protected]>
…#307) Adds a GitLab provider (REST API v4, no external CLI) supporting gitlab.com and self-hosted / enterprise instances: clone, create repo, create MR with reviewer resolution, fetch MR data, and list group repos. Detection order is known host -> self-hosted GitLab (GITLAB_URL / TEAMAI_GITLAB_HOST) -> the generic `git` transport provider, across HTTPS, ssh:// and scp-style URLs. This complements the generic provider from #301, which is transport-only and cannot create repos or merge requests. Includes review fixes: clone and MR URLs honour the instance scheme, port and path prefix; GITLAB_URL is validated and resolved lazily; the MR fetcher queries the host named by the URL; `/-/` route paths are stripped when parsing repo input; group namespaces resolve by exact path and fail rather than falling back to the personal namespace; group listing includes subgroups; blank tokens read as absent. Wires GitLab into the MR-import dispatcher, the org-import provider resolution, shallowClone token injection, and doctor. Co-Authored-By: Shin Yang <[email protected]>
…ut (#308) Two follow-up fixes for the generic Git provider (#301): - parseGenericGitRepoInput accepted scp-style URLs whose user field carried credentials (e.g. "oauth2:token@host:group/repo.git"), returning them verbatim while the HTTPS path already rejected embedded credentials. A colon in the SSH user field is a credential, never a real login, so reject it. Normal "git@host:..." logins are unaffected. - Clone timeout was 120s, shorter than the 180s default used by the shallow-clone path in clone.ts. Large self-hosted repos over slow/VPN links could time out where the equivalent path would not. Align to 180s. Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )