Skip to content

fix: use configured Gitlab URI for integration calls by default#135

Open
Kenneth-Sills wants to merge 1 commit into
pricorephp:mainfrom
Kenneth-Sills:kesills/gitlab-integration-default-uri-resolution
Open

fix: use configured Gitlab URI for integration calls by default#135
Kenneth-Sills wants to merge 1 commit into
pricorephp:mainfrom
Kenneth-Sills:kesills/gitlab-integration-default-uri-resolution

Conversation

@Kenneth-Sills
Copy link
Copy Markdown

Previously, all API calls on an OAuth Gitlab integration would still send their API calls to gitlab.com. Overriding that URI was only possible for PATs.

This retargets the default for all Gitlab operations to the configured URI, which both fixes the integration and has PAT integrations use a sane default.

I considered saving the Gitlab URI used in the integration instead, which has the added benefit of preventing existing repository integrations from breaking if the admin retargets the global Gitlab URI setting. But that's a more opinionated approach more suitable for a maintainer to pursue, so left off for now. Easy enough to add later. :)

Closes #134

Previously, all API calls on an OAuth Gitlab integration would still send their
API calls to `gitlab.com`. Overriding that URI was only possible for PATs.

This retargets the default for all Gitlab operations to the configured URI,
which both fixes the integration _and_ has PAT integrations use a sane default.

I considered saving the Gitlab URI used in the integration instead, which has
the added benefit of preventing existing repository integrations from breaking
if the admin retargets the global Gitlab URI setting. But that's a more
opinionated approach more suitable for a maintainer to pursue, so left off
for now. Easy enough to add later. :)

Closes pricorephp#134
@Kenneth-Sills Kenneth-Sills marked this pull request as ready for review May 25, 2026 03:05
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.

OAuth-Based Gitlab Integration to a Self-Hosted Instance Doesn't Work

1 participant