Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
github-label-sync Normal file
View 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}}`