mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 17:44:33 +00:00
Update cheatsheets
This commit is contained in:
29
github-label-sync
Normal file
29
github-label-sync
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# github-label-sync
|
||||
|
||||
> A command-line interface for synchronizing GitHub labels.
|
||||
> More information: <https://github.com/Financial-Times/github-label-sync>.
|
||||
|
||||
- Synchronize labels using a local `labels.json` file:
|
||||
|
||||
`github-label-sync --access-token {{token}} {{repository_name}}`
|
||||
|
||||
- Synchronize 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 synchronizing 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}}`
|
||||
|
||||
- Synchronize using the `GITHUB_ACCESS_TOKEN` environment variable:
|
||||
|
||||
`github-label-sync {{repository_name}}`
|
||||
Reference in New Issue
Block a user