1.2.0 • Published 4 years ago

copy-github-labels-cli-reloaded v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Copy GitHub Labels CLI

CLI tool to copy GitHub labels from one repository to another.

If you only want to copy GitHub labels in a script and don't need a CLI, please use copy-github-labels-reloaded to avoid unnecessary dependencies.

Installation

$ npm install -g copy-github-labels-cli-reloaded

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:

copy-github-labels

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

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago