Detect provider from GitLab CI for self-hosted hosts, add override - #121
Merged
RomainCscn merged 6 commits intoJul 27, 2026
Conversation
mwolting
approved these changes
Jul 27, 2026
RomainCscn
deleted the
romain/lin-79079-sync-fails-on-self-hosted-gitlabgithub-with-a-hostname-that
branch
July 27, 2026 09:17
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.
syncderivedrepository.providerfrom a substring match on the remote hostname, so a self-hosted GitLab on a custom domain resolved tonulland the API rejected the whole sync (provider: String!). Both reports came from GitLab CI.Provider now resolves as
LINEAR_VCS_PROVIDERoverride → hostname match (unchanged) →gitlabon GitLab CI when the remote matchesCI_SERVER_HOSTorCI_PROJECT_PATH. Both reported setups work with zero configuration. When nothing resolves,syncerrors before mutating and exits2(other errors keep1) so wrappers can tell a misconfiguration from a transient failure.Fixes LIN-79079