Linux command
github-label-sync 命令
网络
需要网络或远程资源。
常用示例
Sync labels to repository
github-label-sync --labels [labels.json] [owner/repo]
Dry run
github-label-sync --dry-run --labels [labels.json] [owner/repo]
Allow added labels
github-label-sync --allow-added-labels --labels [labels.json] [owner/repo]
说明
github-label-sync synchronizes GitHub labels with a JSON configuration file. It ensures consistent labeling across repositories by defining labels declaratively, adding missing labels, updating changed ones, and optionally removing unlisted labels.
参数
- -l, --labels _file_
- Labels configuration file.
- -d, --dry-run
- Show what would change.
- -a, --allow-added-labels
- Don't delete unlisted labels.
- -A, --access-token _token_
- GitHub access token.
FAQ
What is the github-label-sync command used for?
github-label-sync synchronizes GitHub labels with a JSON configuration file. It ensures consistent labeling across repositories by defining labels declaratively, adding missing labels, updating changed ones, and optionally removing unlisted labels.
How do I run a basic github-label-sync example?
Run `github-label-sync --labels [labels.json] [owner/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --labels _file_ do in github-label-sync?
Labels configuration file.