micnncim / action-label-syncer

GitHub Action to sync GitHub labels in the declarative way
https://github.com/marketplace/actions/label-syncer
Apache License 2.0
197 stars 31 forks source link

Allow label renaming #59

Open larsks opened 3 years ago

larsks commented 3 years ago

If I have a label bug and I would like it to be type: bug, I wish I could do something like this:

- name: "type: bug"
  alias: "bug"

And then label-syncer would:

This would make it much easier to make a set of existing repositories consistent.

joeyparrish commented 2 years ago

I found it necessary to extend this original idea a bit. To support a single config to get multiple, divergent repos using the same labels, I need support for multiple aliases for some:

- name: "Type: bug"
  aliases:
    - bug
    - defect
  description: Something isn't working
  color: d73a4a

I think we should support both syntaxes (single alias and multiple). But having support for either a string or an array of them in the parser seems to require two different field names (alias as a string, and aliases for an array of strings).