Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

29
tldr/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}}`