-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add GitLab git provider #25396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ccae998
feat: add GitLab support to externalauth/gitprovider
johnstcn c081c56
fixup! feat: add GitLab support to externalauth/gitprovider
johnstcn 37ed044
fixup! fixup! feat: add GitLab support to externalauth/gitprovider
johnstcn 90c2cb5
fix: handle ErrNoTokenAvailable gracefully in diff handler
johnstcn 0977b25
fix: address review findings (DEREM-1 through DEREM-13)
johnstcn c85b9eb
feat: populate Commits/Additions/Deletions via MR commits endpoint
johnstcn bb1701a
test: replace GitLab VCR cassettes with dedicated test fixtures
johnstcn 0a19642
fix: address review findings (DEREM-4, DEREM-8, DEREM-9)
johnstcn afe59a5
refactor: use errors.AsType for type-safe error assertions
johnstcn 15892bd
fix: address R2 review findings (DEREM-25 through DEREM-29)
johnstcn b7d5be2
Merge branch 'main' into cj/gitsync-gitlab
johnstcn a3a5fee
Merge remote-tracking branch 'origin/main' into cj/gitsync-gitlab
johnstcn a798071
feat(scripts/develop): load .env file for local dev configuration
johnstcn 26c5b59
fix(scripts/develop): load .env before option parsing
johnstcn 00c0e83
fix: derive GitLab APIBaseURL from AuthURL for self-hosted instances
johnstcn 833488d
fix: compute GitLab MR additions/deletions from diffs endpoint
johnstcn aee62c4
refactor: tidy gitprovider helpers
johnstcn fd5e79b
Merge remote-tracking branch 'origin/main' into cj/gitsync-gitlab
johnstcn 4cec8b5
fix: use checkRateLimitError in FetchBranchDiff
johnstcn 244cbcc
fix: add ---/+++ headers to FetchBranchDiff output
johnstcn b073470
chore: add TODO comments for known limitations
johnstcn 804009c
fix: add mapGitLabState test and log truncated diffs
johnstcn 2eafcba
docs: document GitLab known limitations
johnstcn 4f041a9
fix: restore Checking logs section in git-providers docs
johnstcn 85e3d3b
Apply suggestion from @johnstcn
johnstcn f642982
test: assert Approved, ReviewerCount, ChangesRequested in FetchPullRe…
johnstcn 7eabc99
fix: include response body in FetchBranchDiff error diagnostics
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3 [DEREM-7] This hardcodes
"github"as the fallback provider. With GitLab now supported, any GitLab-hostedGitRemoteOriginstored inChatDiffStatuswill failParseRepositoryOrigin(host mismatch) and produce no branch URL. The pre-existing TODO acknowledges the GitHub Enterprise gap; GitLab widens it.This needs a human decision: either accept the gap and document it, or iterate over configured providers. The fix requires access to external auth configs at the db2sdk layer, which is a broader refactor.
(Mafuuu P3, Ryosuke P3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged. This is pre-existing behavior unrelated to the GitLab provider addition; the
db2sdk.gofallback to"github"needs a broader refactor (iterating over configured providers). Out of scope for this PR.