You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
@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.
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
GitReleaseManager/src/GitReleaseManager.Core/Configuration/LabelConfig.cs
Line 8 in c0d8b8e
GitReleaseManager/src/GitReleaseManager.Core/Model/Label.cs
Line 8 in c0d8b8e
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.
GitReleaseManager/src/GitReleaseManager.Core/VcsService.cs
Line 310 in c0d8b8e
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
The text was updated successfully, but these errors were encountered: