Skip to content

Commit 02ab263

Browse files
committed
shakers fix
1 parent 7e2d2c0 commit 02ab263

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/scm/gitlab/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getClient() {
1010
return new Gitlab(opts);
1111
}
1212

13-
// GitLab uses project ID or "owner/repo" encoded as "owner%2Frepo"
13+
// GitLab uses project ID or the full path — gitbeaker's endpoint tag encodes it
1414
export function projectId(name) {
15-
return encodeURIComponent(name);
15+
return name;
1616
}

src/scm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function detectRepoName() {
6767
if (!origin) return null;
6868
// Handle SSH: git@github.com:owner/repo.git
6969
// Handle HTTPS: https://github.com/owner/repo.git
70-
const match = origin.match(/[/:]([\w.-]+\/[\w.-]+?)(?:\.git)?$/);
70+
const match = origin.match(/[/:]([\w.-]+(?:\/[\w.-]+)+?)(?:\.git)?$/);
7171
return match ? match[1] : null;
7272
}
7373

0 commit comments

Comments
 (0)