Skip to content

Commit b217fbe

Browse files
fix(web) Fix "At least one project, user, or group must be specified" for GitLab configs in web configurator (#512)
1 parent 83a8d30 commit b217fbe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- 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)
12+
1013
## [4.6.8] - 2025-09-15
1114

1215
### Fixed

packages/web/src/app/[domain]/components/connectionCreationForms/gitlabConnectionCreationForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ const additionalConfigValidation = (config: GitlabConnectionConfig): { message:
1313
const hasProjects = config.projects && config.projects.length > 0 && config.projects.some(p => p.trim().length > 0);
1414
const hasUsers = config.users && config.users.length > 0 && config.users.some(u => u.trim().length > 0);
1515
const hasGroups = config.groups && config.groups.length > 0 && config.groups.some(g => g.trim().length > 0);
16+
const hasAll = config.all;
1617

17-
if (!hasProjects && !hasUsers && !hasGroups) {
18+
if (!hasProjects && !hasUsers && !hasGroups && !hasAll) {
1819
return {
1920
message: "At least one project, user, or group must be specified",
2021
isValid: false,

0 commit comments

Comments
 (0)