2019-05-18 09:58:16 +01:00
|
|
|
# github-label-sync
|
|
|
|
|
2024-04-25 23:58:21 +01:00
|
|
|
> Synchronize GitHub labels.
|
2021-12-31 12:21:30 +00:00
|
|
|
> More information: <https://github.com/Financial-Times/github-label-sync>.
|
2019-05-18 09:58:16 +01:00
|
|
|
|
2022-06-27 11:23:12 +01:00
|
|
|
- Synchronize labels using a local `labels.json` file:
|
2019-05-18 09:58:16 +01:00
|
|
|
|
|
|
|
`github-label-sync --access-token {{token}} {{repository_name}}`
|
|
|
|
|
2022-06-27 11:23:12 +01:00
|
|
|
- Synchronize labels using a specific labels JSON file:
|
2019-05-18 09:58:16 +01:00
|
|
|
|
|
|
|
`github-label-sync --access-token {{token}} --labels {{url|path/to/json_file}} {{repository_name}}`
|
|
|
|
|
2022-06-27 11:23:12 +01:00
|
|
|
- Perform a dry run instead of actually synchronizing labels:
|
2019-05-18 09:58:16 +01:00
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
2022-06-27 11:23:12 +01:00
|
|
|
- Synchronize using the `GITHUB_ACCESS_TOKEN` environment variable:
|
2019-05-18 09:58:16 +01:00
|
|
|
|
|
|
|
`github-label-sync {{repository_name}}`
|