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 to avoid unnecessary dependencies.
$ npm install -g copy-github-labels-cli
$ copy-github-labels -t <token> <source-repo> <destination-repo>
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:
Check out the GitHub guide: Creating an access token for command-line use.
This happens when your token is not valid.
This happens when GitHub refuses to copy the label because it is already present in the destination repository.
This happens when the destination repository cannot be found.
MIT
- added
-f
force option to overwrite label if exists. - improve error to show label in error.
- copies description.
example:
$ copy-github-labels -f -t xxx owner/SourceRepo owner/DestinationRepo
- Released production version
- Added error handling
- Updated documentation
- Initial version