Skip to content

Commit f9940c4

Browse files
committed
Fix labels.exclude schema: object with name
The labels.exclude property takes an array of objects with properties.
1 parent 17e6d5c commit f9940c4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/github-settings/8. labels.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ You can use the REST API to manage labels for a repository and add or remove lab
1010
```yaml
1111
# These settings are synced to GitHub by https://github.com/github/safe-settings
1212
labels:
13-
- name: bug
14-
color: CC0000
15-
description: An issue with the system
13+
include:
14+
- name: bug
15+
color: CC0000
16+
description: An issue with the system
17+
exclude:
18+
# don't delete any labels that start with "release"
19+
- name: ^release
1620
```
1721
1822
## Team API Spec

schema/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@
7575
"description": "Ignore any labels matching these regexes (don't delete them)",
7676
"type": "array",
7777
"items": {
78-
"type": "string"
78+
"type": "object",
79+
"properties": {
80+
"name": {
81+
"type": "string"
82+
}
83+
}
7984
}
8085
}
8186
}

0 commit comments

Comments
 (0)