There was an error while loading. Please reload this page.
1 parent 7e2d2c0 commit 02ab263Copy full SHA for 02ab263
2 files changed
src/scm/gitlab/client.js
@@ -10,7 +10,7 @@ export function getClient() {
10
return new Gitlab(opts);
11
}
12
13
-// GitLab uses project ID or "owner/repo" encoded as "owner%2Frepo"
+// GitLab uses project ID or the full path — gitbeaker's endpoint tag encodes it
14
export function projectId(name) {
15
- return encodeURIComponent(name);
+ return name;
16
src/scm/index.js
@@ -67,7 +67,7 @@ export function detectRepoName() {
67
if (!origin) return null;
68
// Handle SSH: git@github.com:owner/repo.git
69
// Handle HTTPS: https://github.com/owner/repo.git
70
- const match = origin.match(/[/:]([\w.-]+\/[\w.-]+?)(?:\.git)?$/);
+ const match = origin.match(/[/:]([\w.-]+(?:\/[\w.-]+)+?)(?:\.git)?$/);
71
return match ? match[1] : null;
72
73
0 commit comments