Skip to content

Commit

Permalink
fix: add Gitlab Host fallback regression (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnymac authored Nov 28, 2023
1 parent b070056 commit f8103a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-geese-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'changesets-gitlab': patch
---

fix: gitlab host fallback environment variables
4 changes: 4 additions & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export const env = {
...process.env,

CI_MERGE_REQUEST_IID: +process.env.CI_MERGE_REQUEST_IID!,
GITLAB_HOST:
process.env.GITLAB_HOST ??
process.env.CI_SERVER_URL ??
'https://gitlab.com',
GITLAB_CI_USER_EMAIL:
process.env.GITLAB_CI_USER_EMAIL || 'gitlab[bot]@users.noreply.gitlab.com',
GITLAB_COMMENT_TYPE: process.env.GITLAB_COMMENT_TYPE ?? 'discussion',
Expand Down

0 comments on commit f8103a8

Please sign in to comment.