Skip to content

Bash script to replace all issue labels of a GitHub repository with new ones

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.txt
Notifications You must be signed in to change notification settings

mfederczuk/replace-gh-labels

Repository files navigation

replace-gh-labels

version: 2.0.0-indev01 Changelog

About

replace-gh-labels is a Bash script to replace all existing issue labels of a GitHub repository with new ones supplied from a file.

Usage

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.

Download & Installation

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

Contributing

Read through the Contribution Guidelines if you want to contribute to this project.

License

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.

About

Bash script to replace all issue labels of a GitHub repository with new ones

Topics

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE.txt
Unknown
COPYING.txt

Code of conduct

Stars

Watchers

Forks

Languages