Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdougie/octoherd-script-copy-labels
This script copies labels from one repo to the next
https://github.com/bdougie/octoherd-script-copy-labels
octoherd-script
Last synced: about 2 months ago
JSON representation
This script copies labels from one repo to the next
- Host: GitHub
- URL: https://github.com/bdougie/octoherd-script-copy-labels
- Owner: bdougie
- License: isc
- Created: 2021-04-16T16:34:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T06:07:19.000Z (over 3 years ago)
- Last Synced: 2024-07-05T15:42:54.373Z (3 months ago)
- Topics: octoherd-script
- Language: JavaScript
- Size: 58.6 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-octoherd-scripts - Copy labels - Copy labels from one repo to the next. (Scripts)
README
# octoherd-script-copy-labels
> This script copies labels from one repo to the next
[![@latest](https://img.shields.io/npm/v/octoherd-script-copy-labels.svg)](https://www.npmjs.com/package/octoherd-script-copy-labels)
[![Build Status](https://github.com/bdougie/octoherd-script-copy-labels/workflows/Test/badge.svg)](https://github.com/bdougie/octoherd-script-copy-labels/actions?query=workflow%3ATest+branch%3Amain)## Usage
Minimal usage
```js
npx octoherd-script-copy-labels \
--template bdougie/live
```Pass all options as CLI flags to avoid user prompts
```
npx octoherd-script-copy-labels \
--template bdougie/live \
-T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \
-R "bdougie/*"
```## Options
| option | type | description |
| ---------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--template` | string | **(required)** this is the repo you want the labels to be copied from |
| `--octoherd-token`, `-T` | string | A personal access token ([create](https://github.com/settings/tokens/new?scopes=repo)). Script will create one if option is not set |
| `--octoherd-repos`, `-R` | array of strings | One or multiple space-separated repositories in the form of `repo-owner/repo-name`. `repo-owner/*` will find all repositories for one owner. `*` will find all repositories the user has access to. Will prompt for repositories if not set |
| `--octoherd-bypass-confirms` | boolean | Bypass prompts to confirm mutating requests |## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
## About Octoherd
[@octoherd](https://github.com/octoherd/) is project to help you keep your GitHub repositories in line.
## License
[ISC](LICENSE.md)