replace-gh-labels
is a Bash script to replace all existing issue labels of a GitHub repository with new ones supplied
from a file.
The first argument is the repository owner and repository name — separated by a slash.
The second argument is the path to the JSON file containing the new issue labels.
replace-gh-labels mfederczuk/replace-gh-labels issue_labels.json
The JSON schema of the file is:
[
{
"name": string,
"description": string | null,
"color": string | null
}
]
The username and personal access token that are used for authentication are read from the files
$XDG_CONFIG_HOME/replace-gh-labels/user.txt
and $XDG_CONFIG_HOME/replace-gh-labels/access_token.txt
respectively.
If username file does not exist, then repository owner is used instead.
Just download the script from this repository, add the executable bit.
Optionally add it to the $PATH
.
wget https://github.com/mfederczuk/replace-gh-labels/raw/v2.0.0-indev01/replace-gh-labels &&
chmod +x replace-gh-labels
Read through the Contribution Guidelines if you want to contribute to this project.
replace-gh-labels
is licensed under both the Mozilla Public License 2.0 AND
the Apache License 2.0.
For more information about copying and licensing, see the COPYING.txt
file.