IvanFon / super-labeler-action

A superpowered issue and pull request labeler for Github Actions.
GNU General Public License v3.0
22 stars 12 forks source link

Setting to delete repository labels that aren't in your config #4

Open IvanFon opened 4 years ago

IvanFon commented 4 years ago

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.