gedex / gembel

Bulk update GitHub issue labels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gembel

gembel — command line app to bulk update GitHub issue labels.

Install

From brew

brew install gedex/tap/gembel

Check the tap source for more details.

From binaries

Download your preferred flavor from the releases page and install manually.

From Go Get

go get github.com/gedex/gembel

Using gembel

Before using gembel, you need GITHUB_TOKEN (can be retrieved from here). Once you've that, set it to your bash profile or provide it when running the app:

GITHUB_TOKEN="token" gembel <config-file>

<config-file> is JSON file with following structure:

{
    "labels": [
        {
            "name": "[Type] Bug",
            "color": "e11d21",
            "replace": "bug"
        },
        {
            "name": "[Type] Enhancement",
            "color": "c7def8"
        }
    ],
    "repositories": [
        "gedex/repo-name",
        "gedex/another-repo-name"
    ]
}

It requires labels (label properties to apply) and repositories (the target repositories). If label has replace property (optional), it will replace matching label in the repository with the new one in name. If you want to mimic labels from another repository, you can use glek to export repository issue labels.

About

Bulk update GitHub issue labels

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%