fix(gitlab): enhance group name matching logic to support multiple names

- Updated the group name check to allow for a comma-separated list of names, improving flexibility in group name validation.
This commit is contained in:
Mauricio Siu
2025-04-17 02:20:03 -06:00
parent 1279fac137
commit 33ab87f3db

View File

@@ -435,7 +435,9 @@ export const testGitlabConnection = async (
const { full_path, kind } = repo.namespace;
if (groupName) {
return full_path.toLowerCase().includes(groupName) && kind === "group";
return groupName
.split(",")
.some((name) => full_path.toLowerCase().includes(name));
}
return kind === "user";
});