https://github.com/unknwon/labeler
Labeler is a CLI tool to sync labels for a GitHub repository with templates.
https://github.com/unknwon/labeler
github go label-template lsif-enabled
Last synced: 7 months ago
JSON representation
Labeler is a CLI tool to sync labels for a GitHub repository with templates.
- Host: GitHub
- URL: https://github.com/unknwon/labeler
- Owner: unknwon
- License: mit
- Created: 2019-09-22T04:54:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T04:58:29.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T00:48:14.037Z (9 months ago)
- Topics: github, go, label-template, lsif-enabled
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Labeler
Labeler is a CLI tool to sync labels for a GitHub repository with templates.
## Installation
```
go install github.com/unknwon/labeler@latest
```
## Usage
```
NAME:
labeler - A CLI tool to sync labels for a GitHub repository with templates
USAGE:
[global options] command [command options] [arguments...]
VERSION:
0.2.0
COMMANDS:
save Save labels of target repository to a template file
sync Sync labels from a template file to target repository
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--token value GitHub personal access token [$LABELER_TOKEN]
--help, -h show help
--version, -v print the version
```
## Example
Create a personal access token with `repo` scope selected.
Save labels from a repository:
```sh
$ export LABELER_TOKEN={your GitHub token}
$ labeler save --owner=unknwon --repo=labeler --to unknwon_labeler.json
```
Sync labels to a repository:
```sh
$ export LABELER_TOKEN={your GitHub token}
$ labeler sync --owner=unknwon --repo=labeler --from unknwon_labeler.json
```
## License
This project is under MIT License. See the [LICENSE](LICENSE) file for the full license text.