fix: encode group path for getGroupByPath (#28826)

Signed-off-by: Hghtwr <johannes.sonner@outlook.com>
This commit is contained in:
Hghtwr
2025-02-13 20:18:51 +01:00
parent eff7b0084f
commit 4db039ad7f
2 changed files with 9 additions and 1 deletions
@@ -174,7 +174,10 @@ export class GitLabClient {
groupPath: string,
options?: CommonListOptions,
): Promise<GitLabGroup> {
return this.nonPagedRequest(`/groups/${groupPath}`, options);
return this.nonPagedRequest(
`/groups/${encodeURIComponent(groupPath)}`,
options,
);
}
async listDescendantGroups(