fix(gitlab): update group name label and enhance group name handling

- Updated the label for the group name input field to indicate it accepts a comma-separated list.
- Modified the logic for checking group name inclusion to support multiple names separated by commas.
This commit is contained in:
Lorenzo Migliorero
2025-04-07 21:43:56 +02:00
parent 8f0697b0e9
commit 0e1f0b42ee
3 changed files with 11 additions and 3 deletions

View File

@@ -264,7 +264,11 @@ export const getGitlabRepositories = async (gitlabId?: string) => {
const groupName = gitlabProvider.groupName?.toLowerCase();
if (groupName) {
return full_path.toLowerCase().includes(groupName) && kind === "group";
const isIncluded = groupName
.split(",")
.some((name) => full_path.toLowerCase().includes(name));
return isIncluded && kind === "group";
}
return kind === "user";
});