diff --git a/CHANGELOG.md b/CHANGELOG.md index 96707a15..aa6d0102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fixed "At least one project, user, or group must be specified" for GitLab configs with `all` in web configurator. [#512](https://github.com/sourcebot-dev/sourcebot/pull/512) + ## [4.6.8] - 2025-09-15 ### Fixed diff --git a/packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx b/packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx index d21823f6..b408fcee 100644 --- a/packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx +++ b/packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx @@ -13,8 +13,9 @@ const additionalConfigValidation = (config: GitlabConnectionConfig): { message: const hasProjects = config.projects && config.projects.length > 0 && config.projects.some(p => p.trim().length > 0); const hasUsers = config.users && config.users.length > 0 && config.users.some(u => u.trim().length > 0); const hasGroups = config.groups && config.groups.length > 0 && config.groups.some(g => g.trim().length > 0); + const hasAll = config.all; - if (!hasProjects && !hasUsers && !hasGroups) { + if (!hasProjects && !hasUsers && !hasGroups && !hasAll) { return { message: "At least one project, user, or group must be specified", isValid: false,