Skip to content

Detect provider from GitLab CI for self-hosted hosts, add override - #121

Merged
RomainCscn merged 6 commits into
mainfrom
romain/lin-79079-sync-fails-on-self-hosted-gitlabgithub-with-a-hostname-that
Jul 27, 2026
Merged

Detect provider from GitLab CI for self-hosted hosts, add override#121
RomainCscn merged 6 commits into
mainfrom
romain/lin-79079-sync-fails-on-self-hosted-gitlabgithub-with-a-hostname-that

Conversation

@RomainCscn

@RomainCscn RomainCscn commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

sync derived repository.provider from a substring match on the remote hostname, so a self-hosted GitLab on a custom domain resolved to null and the API rejected the whole sync (provider: String!). Both reports came from GitLab CI.

Provider now resolves as LINEAR_VCS_PROVIDER override → hostname match (unchanged) → gitlab on GitLab CI when the remote matches CI_SERVER_HOST or CI_PROJECT_PATH. Both reported setups work with zero configuration. When nothing resolves, sync errors before mutating and exits 2 (other errors keep 1) so wrappers can tell a misconfiguration from a transient failure.

Fixes LIN-79079

@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

LIN-79079

@RomainCscn RomainCscn changed the title Detect repository provider for self-hosted VCS hosts Detect provider from GitLab CI for self-hosted hosts, add override Jul 27, 2026
@RomainCscn
RomainCscn merged commit fd89c16 into main Jul 27, 2026
10 checks passed
@RomainCscn
RomainCscn deleted the romain/lin-79079-sync-fails-on-self-hosted-gitlabgithub-with-a-hostname-that branch July 27, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync fails on self-hosted GitLab/GitHub with a hostname that doesn't contain "gitlab"/"github" (input.repository.provider null)

2 participants