Skip to content

Commit 88f1e60

Browse files
committed
feat: still allow empty (null) values for member and maintainer
1 parent 8b62327 commit 88f1e60

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

gh_org_mgr/_config.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,18 @@
7575
"type": "string",
7676
"enum": ["notifications_enabled", "notifications_disabled"],
7777
},
78-
"maintainer": {"type": "array", "items": {"type": "string"}},
79-
"member": {"type": "array", "items": {"type": "string"}},
78+
"maintainer": {
79+
"oneOf": [
80+
{"type": "null"},
81+
{"type": "array", "items": {"type": "string"}}
82+
]
83+
},
84+
"member": {
85+
"oneOf": [
86+
{"type": "null"},
87+
{"type": "array", "items": {"type": "string"}}
88+
]
89+
},
8090
"parent": {"type": "string"},
8191
"repos": {
8292
"type": "object",

tests/data/config/teams_files/teams_changes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ Test3-child:
2626
- TEST_USER
2727

2828
Test4:
29+
member:

tests/data/config/teams_files/teams_orig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
Test1:
55
description: First test team
6+
member: []
67

78
Test2:
89
privacy: secret

0 commit comments

Comments
 (0)