We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b28f7 commit 5d189a5Copy full SHA for 5d189a5
.changeset/long-stars-tie.md
@@ -0,0 +1,5 @@
1
+---
2
+"changesets-gitlab": patch
3
4
+
5
+fix encode username
src/main.ts
@@ -35,14 +35,15 @@ export const main = async ({
35
36
console.log('setting GitLab credentials')
37
const username = await getUsername(createApi())
38
+ const safeUsername = encodeURIComponent(username)
39
40
await exec(
41
'git',
42
[
43
'remote',
44
'set-url',
45
'origin',
- `${url.protocol}//${username}:${GITLAB_TOKEN}@${
46
+ `${url.protocol}//${safeUsername}:${GITLAB_TOKEN}@${
47
url.host
48
}${url.pathname.replace(/\/$/, '')}/${env.CI_PROJECT_PATH}.git`,
49
],
0 commit comments