Skip to content

jvandemo/copy-github-labels-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy GitHub Labels CLI

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

Build Status

octocat

If you only want to copy GitHub labels in a script and don't need a CLI, 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:

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

Change log

1.0.0

  • Released production version

0.2.0

  • Added error handling
  • Updated documentation

0.1.0

  • Initial version

About

CLI tool to copy GitHub labels from one repository to another

Resources

License

Stars

Watchers

Forks

Packages

No packages published