1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 13:02:08 +02:00
tldr/pages/common/github-label-sync.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

24 lines
809 B
Markdown

# github-label-sync
> A command-line interface for synchronising GitHub labels.
> More information: <https://npmjs.com/package/github-label-sync>.
- Synchronise labels using a local `labels.json` file:
`github-label-sync --access-token {{token}} {{repository_name}}`
- Synchronise labels using a specific labels JSON file:
`github-label-sync --access-token {{token}} --labels {{url|path/to/json_file}} {{repository_name}}`
- Perform a dry run instead of actually synchronising labels:
`github-label-sync --access-token {{token}} --dry-run {{repository_name}}`
- Keep labels that aren't in `labels.json`:
`github-label-sync --access-token {{token}} --allow-added-labels {{repository_name}}`
- Synchronise using the `GITHUB_ACCESS_TOKEN` environment variable:
`github-label-sync {{repository_name}}`