Skip to content

Commit 2719903

Browse files
fix(schemas): allow spaces in Azure DevOps project and repo names (#1170)
* fix(schemas): allow spaces in Azure DevOps project and repo names Update the regex patterns for `projects` and `repos` in the Azure DevOps connection schema to accept names containing spaces. Azure DevOps natively supports spaces in project and repository names, but the previous pattern `[\w.-]+` excluded them. The org segment keeps its original restriction since Azure DevOps organization names are URL-based and don't support spaces. Fixes #1166 Co-authored-by: Brendan Kellam <brendan-kellam@users.noreply.github.com> * chore: add changelog entry for Azure DevOps spaces fix Co-authored-by: Brendan Kellam <brendan-kellam@users.noreply.github.com> --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Brendan Kellam <brendan-kellam@users.noreply.github.com>
1 parent 7243fdf commit 2719903

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Added three new audit actions covering the full org membership lifecycle: `org.member_added`, `org.member_removed`, and `org.member_left`. [#1165](https://github.com/sourcebot-dev/sourcebot/pull/1165)
1212
- Added per-user JWT session versioning so admin-driven member removals (and voluntary leaves) invalidate the removed user's active JWT cookies, personal API keys, and OAuth tokens atomically on their next request. [#1168](https://github.com/sourcebot-dev/sourcebot/pull/1168)
1313

14+
### Fixed
15+
- Fixed Azure DevOps connection schema to allow spaces in project and repository names. [#1170](https://github.com/sourcebot-dev/sourcebot/pull/1170)
16+
1417
## [4.17.0] - 2026-04-30
1518

1619
### Added

docs/snippets/schemas/v3/azuredevops.schema.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"type": "array",
8383
"items": {
8484
"type": "string",
85-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
85+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
8686
},
8787
"default": [],
8888
"examples": [
@@ -97,7 +97,7 @@
9797
"type": "array",
9898
"items": {
9999
"type": "string",
100-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
100+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
101101
},
102102
"default": [],
103103
"examples": [

packages/schemas/src/v3/azuredevops.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const schema = {
8181
"type": "array",
8282
"items": {
8383
"type": "string",
84-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
84+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
8585
},
8686
"default": [],
8787
"examples": [
@@ -96,7 +96,7 @@ const schema = {
9696
"type": "array",
9797
"items": {
9898
"type": "string",
99-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
99+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
100100
},
101101
"default": [],
102102
"examples": [

schemas/v3/azuredevops.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"type": "array",
5454
"items": {
5555
"type": "string",
56-
"pattern": "^[\\w.-]+\\/[\\w.-]+$"
56+
"pattern": "^[\\w.-]+\\/[\\w. -]+$"
5757
},
5858
"default": [],
5959
"examples": [
@@ -68,7 +68,7 @@
6868
"type": "array",
6969
"items": {
7070
"type": "string",
71-
"pattern": "^[\\w.-]+\\/[\\w.-]+\\/[\\w.-]+$"
71+
"pattern": "^[\\w.-]+\\/[\\w. -]+\\/[\\w. -]+$"
7272
},
7373
"default": [],
7474
"examples": [

0 commit comments

Comments
 (0)