gh-copy-labels

1.0.1 • Public • Published

Github copy labels

Copy labels across multiple Github repos from a source repo.

travis-image npm-image

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

  1. Copy to multiple repos within an organizations.
  2. Avoids duplicate labels.
  3. 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

  1. Run cp-labels command to start the process.
  2. You will need a Github Personal Token. Grab it from your Developer settings.
  3. Then just follow the prompts.
  4. Pass --re-auth flag to define a token (since tokens are stored and re-used).
  5. 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.

Package Sidebar

Install

npm i gh-copy-labels

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

23.2 kB

Total Files

16

Last publish

Collaborators

  • virk