copy-github-labels-cli
v1.0.0
Published
CLI tool to copy github labels
Downloads
2
Readme
Copy GitHub Labels CLI
CLI tool to copy GitHub labels from one repository to another.
If you want to copy GitHub labels in a script, please use copy-github-labels to avoid unnecessary dependencies.
Installation
$ npm install -g copy-github-labels-cli
Usage
$ copy-github-labels -t <token> <source-repo> <destination-repo>
Example
To copy all labels from angular/angular
to jvandemo/test
:
$ copy-github-labels -t e7ac7612021979b8884f6f11236c65e7723da8c1 angular/angular jvandemo/test
The token above is just an example token, not a real token. You should generate your own token.
The output shows whether or not the copy failed for each label individually:
FAQ
Where can I get a token?
Check out the GitHub guide: Creating an access token for command-line use.
I'm getting an error "Unknown label: failed (Bad credentials)"
This happens when your token is not valid.
I'm getting an error "Unknown label: failed (Validation Failed)"
This happens when GitHub refuses to copy the label because it is already present in the destination repository.
I'm getting an error "Unknown label: failed (Not Found)"
This happens when the destination repository cannot be found.
License
MIT
Change log
1.0.0
- Released production version
0.2.0
- Added error handling
- Updated documentation
0.1.0
- Initial version