gh-copy-labels
v1.0.1
Published
Copy labels across multiple repos on Github
Downloads
3
Readme
Github copy labels
Copy labels across multiple Github repos from a source repo.
Github copy labels is a node CLI module to copy labels across multiple repos. I created this module, because I was not able to find any app that lemme copy to multiple repos at once.
Features
- Copy to multiple repos within an organizations.
- Avoids duplicate labels.
- Caches organizations and repos data to avoid hitting Github API every time.
Demo's
If labels already exists, they will be skipped.
Installation
Install it from npm as a global dependency, so that you can run the command from anywhere.
npm i -g gh-copy-labels
Copying labels
- Run
cp-labels
command to start the process. - You will need a Github Personal Token. Grab it from your Developer settings.
- Then just follow the prompts.
- Pass
--re-auth
flag to define a token (since tokens are stored and re-used). - Pass
--force
flag to re-fetch orgs and repos (since they are cached to avoid hitting Github API).
Change log
The change log can be found in the CHANGELOG.md file.
Contributing
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Authors & License
thetutlage and contributors.
MIT License, see the included MIT file.