There was an error while loading. Please reload this page.
1 parent fa0fd67 commit f35cd64Copy full SHA for f35cd64
.changeset/three-eels-boil.md
@@ -0,0 +1,5 @@
1
+---
2
+'changesets-gitlab': patch
3
4
+
5
+Fix issue when the release MRs could not be created when gitlab is not hosted at the root of the of the domain (https://www.company.com/gitlab).
src/main.ts
@@ -48,7 +48,7 @@ MainCommandOptions = {}) => {
48
'origin',
49
`${url.protocol}//${username}:${GITLAB_TOKEN!}@${
50
url.host
51
- }/${CI_PROJECT_PATH!}.git`,
+ }${url.pathname.replace(/\/$/, '')}/${CI_PROJECT_PATH!}.git`,
52
],
53
{ silent: !['true', '1'].includes(DEBUG_GITLAB_CREDENTIAL) },
54
)
0 commit comments