gembel — command line app to bulk update GitHub issue labels.
brew install gedex/tap/gembel
Check the tap source for more details.
Download your preferred flavor from the releases page and install manually.
go get github.com/gedex/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.