Repository navigation
feat: add self-managed GitLab repository integration - #62
Draft
HaoQianCheng wants to merge 2 commits into
Draft
HaoQianCheng wants to merge 2 commits into
HaoQianCheng wants to merge 2 commits into
Conversation
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
Self-managed GitLab repositories could not use the GitHub-only credential and repository setup. This adds a separate GitLab instance URL/PAT, identity verification, instance-bound repository parsing, and host-scoped Git authentication across local execution and runners. GitHub credentials remain separate.
Repository inputs now explicitly advertise GitHub / GitLab and accept configured GitLab URLs without a separate platform selector.
The GitLab adapter also supports MR lookup, delivery-state refresh, and the existing scheduled create/merge path, with source-SHA checks before merging.
This is an initial integration, submitted as a draft. GitLab Issue import, promotion/default-branch reconciliation, and automatic MR creation in ordinary SOPs are not included. No live repository writes or complete agent-delivery run were performed.
Scope
Compatibility
gitlab_tokenandgitlab_base_urlcolumns through the existing incremental GORM schema setup.Validation
go test -p=2 ./... -count=1 -timeout=180s: all changed packages passed. The unchangedinternal/managedcli/TestUpdateFailuresAndCandidateReuse/helpfailed its healthy-provider assertion under a 200 ms deadline; an isolated rerun reproduced it.go vet ./...: passed.python3 scripts/check-public.py: passed.bash scripts/scan-secrets.sh: passed.Safety