# gh-copy-labels

> Copy labels across multiple repos on Github

Latest version **1.0.1** (published 2018-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gh-copy-labels
pnpm add gh-copy-labels
yarn add gh-copy-labels
bun add gh-copy-labels
```

Provides the command `cp-labels`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-11-03 |
| First published | 2018-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | virk |
| Maintainers | virk |
| Keywords | gh, gh-labels, github-labels |

## Links

- npm: https://www.npmjs.com/package/gh-copy-labels
- npm.io page: https://npm.io/package/gh-copy-labels

## Dependencies (6)

- [mri](https://npm.io/package/mri.md) ^1.1.1
- [conf](https://npm.io/package/conf.md) ^2.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.0
- [octonode](https://npm.io/package/octonode.md) ^0.9.5

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-11-03
- 1.0.0 — 2018-06-26

## README

# Github copy labels
> Copy labels across multiple Github repos from a source repo.

[![travis-image]][travis-url]
[![npm-image]][npm-url]
![](https://img.shields.io/badge/Uses-Typescript-294E80.svg?style=flat-square&colorA=ddd)

**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
<img src="https://res.cloudinary.com/adonisjs/image/upload/v1530034643/labels-copied_lme74k.gif" width="650px">

If labels already exists, they will be skipped.

<img src="https://res.cloudinary.com/adonisjs/image/upload/v1530034638/labels-exists_rgs76y.gif" width="650px">

## Installation
Install it from npm as a global dependency, so that you can run the command from anywhere.

```shell
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](https://github.com/settings/developers).
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](https://github.com/thetutlage/gh-copy-labels/CHANGELOG.md) file.

## Contributing

Everyone is welcome to contribute. Please take a moment to review the [contributing guidelines](CONTRIBUTING.md).

## Authors & License
[thetutlage](https://github.com/thetutlage) and [contributors](https://github.com/thetutlage/gh-copy-labels/graphs/contributors).

MIT License, see the included [MIT](LICENSE.md) file.

[travis-image]: https://img.shields.io/travis/thetutlage/gh-copy-labels/master.svg?style=flat-square&logo=travis
[travis-url]: https://travis-ci.org/thetutlage/gh-copy-labels "travis"

[npm-image]: https://img.shields.io/npm/v/gh-copy-labels.svg?style=flat-square&logo=npm
[npm-url]: https://npmjs.org/package/gh-copy-labels "npm"

---
_Source: https://npm.io/package/gh-copy-labels · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
