Is your feature request related to a problem? Please describe.
Currently, if a label exists on your repository, but it isn't defined in your labels.json, the label will not be deleted. This makes declaratively defining labels less effective.
Describe the solution you'd like
Add a setting in labels.json that will delete labels not defined in your config. As this is a potentially destructive setting, and to preserve backwards compatibility, it will be off by default.
"settings": {
"removeLabels": true
}
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe. Currently, if a label exists on your repository, but it isn't defined in your
labels.json
, the label will not be deleted. This makes declaratively defining labels less effective.Describe the solution you'd like Add a setting in
labels.json
that will delete labels not defined in your config. As this is a potentially destructive setting, and to preserve backwards compatibility, it will be off by default.Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.