Skip to content
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

Allow label renaming #59

Open
larsks opened this issue May 27, 2021 · 1 comment · May be fixed by #68
Open

Allow label renaming #59

larsks opened this issue May 27, 2021 · 1 comment · May be fixed by #68

Comments

@larsks
Copy link

larsks commented May 27, 2021

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:

  • Create a new label type: bug if no label named either type: bug or bug exists, or
  • Rename an existing label bug to be type: bug

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

@larsks larsks changed the title Allow label realting Allow label renaming May 27, 2021
larsks added a commit to larsks/action-label-syncer that referenced this issue May 27, 2021
Introduce the "alias" attribute for labels so that label-syncer can
rename labels, rather than deleting/re-creating them. This preserves
labels on existing issues and pull requests.

Closes micnncim#59
larsks added a commit to larsks/action-label-syncer that referenced this issue May 27, 2021
Introduce the "alias" attribute for labels so that label-syncer can
rename labels, rather than deleting/re-creating them. This preserves
labels on existing issues and pull requests.

Closes micnncim#59
@joeyparrish joeyparrish linked a pull request Feb 15, 2022 that will close this issue
@joeyparrish
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants