Skip to content

Fix labels.exclude schema: object with name #870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main-enterprise
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/github-settings/8. labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ You can use the REST API to manage labels for a repository and add or remove lab
```yaml
# These settings are synced to GitHub by https://github.com/github/safe-settings
labels:
- name: bug
color: CC0000
description: An issue with the system
include:
- name: bug
color: CC0000
description: An issue with the system
exclude:
# don't delete any labels that start with "release"
- name: ^release
```

## Team API Spec
Expand Down
7 changes: 6 additions & 1 deletion schema/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@
"description": "Ignore any labels matching these regexes (don't delete them)",
"type": "array",
"items": {
"type": "string"
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
}
Expand Down