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

Allowing labels to be renamed from an existing label #492

Open
davidzwa opened this issue Jun 10, 2023 · 2 comments
Open

Allowing labels to be renamed from an existing label #492

davidzwa opened this issue Jun 10, 2023 · 2 comments

Comments

@davidzwa
Copy link

davidzwa commented Jun 10, 2023

Detailed Description

I propose a extension of the label array model in the Configuration. Specifically I aim to introduce GRM in existing repo's without deleting existing labels, but instead renaming them automatically from old names.

Context

When introducing OR updating GRM labels on a repo, I would love to be able to rename existing labels to a new format. This allows me to update my existing repositories to a new label format with very little effort.

Possible Implementation

Add an optional field called RenameFrom, which when specified will take existing labels and run over the repository to rename them instead of deleting all and creating specific ones.

Instead of deleting all, we determine which ones to delete and which ones to rename. Then we still delete the specific ones to be deleted, and secondly run over the ones to rename. We'd need a new IGithubClient method to do this.

I believe OctoKit has this, looking at its models:

Your Environment

  • Version Used: 0.13.0
  • Edition Used (.NET Core, .NET Framework): .NET Core
  • Operating System and version: Windows 11, Github Actions Ubuntu 22.04 LTS
@davidzwa
Copy link
Author

Willing to PR this, awaiting for approval.

davidzwa added a commit to davidzwa/GitReleaseManager that referenced this issue Jun 10, 2023
davidzwa added a commit to davidzwa/GitReleaseManager that referenced this issue Jun 10, 2023
davidzwa added a commit to davidzwa/GitReleaseManager that referenced this issue Jun 10, 2023
@gep13
Copy link
Member

gep13 commented Jun 19, 2023

@davidzwa I have added a comment to your PR, but also going to reply here... I think this is a good idea. Let me take a look at your PR, and I will get back to you.

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

No branches or pull requests

2 participants