Description
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