Creates issue labels on GitHub idempotently through HashiCorp Terraform.
shell
gh extension install siketyan/gh-labelx
First, write your manifest in YAML format:
labels: - name: feature color: '0000FF' - name: fix color: 'FF0000' - name: refactor color: '00FF00' ```
Check your manifest is correct and can be applied to GitHub:
shell
gh labelx -o <owner> -r <repo> plan -f <file>
Now apply to your GitHub repository:
shell
gh labelx -o <owner> -r <repo> apply -f <file>
It's easy!