Skip to content

Add support for remapping existing labels to new ones #4

@JacobDB

Description

@JacobDB

This may be too complicated for this script, but I'd love the ability to "translate" my existing labels in to this "sane" format. I only recently started trying to use labels to their fullest extent, so I have 200+ projects in my GitLab instance that have an older format.

Being able to set something in the config file like:

{
    ...,
    "translations": {
        "enhancement": "Type: Enhancement",
        "broken": "Type: Bug",
        "done" : "Status: Completed"
    }
}

I have two thoughts on how this could be achieved:

  1. After inserting labels for a project, index all issues. Delete existing labels, and assign translated labels
  2. Before inserting labels for a project, index existing labels, and adjust their settings to match the translated value. (i.e. update broken/#FF0000 to Type: Bug/EE0701).

Any thoughts on this? It'd be a great help in getting all my projects reconfigured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions