Skip to content

Commit 7efce09

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

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

gh_org_mgr/_config.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,12 @@
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": [{"type": "null"}, {"type": "array", "items": {"type": "string"}}]
80+
},
81+
"member": {
82+
"oneOf": [{"type": "null"}, {"type": "array", "items": {"type": "string"}}]
83+
},
8084
"parent": {"type": "string"},
8185
"repos": {
8286
"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)