gh-labelx

Crates.iogh-labelx
lib.rsgh-labelx
version0.1.1
sourcesrc
created_at2022-07-23 17:04:07.321722
updated_at2022-07-23 18:08:35.831366
descriptionCreates issue labels on GitHub idempotently through HashiCorp Terraform.
homepagehttps://github.com/siketyan/gh-labelx
repositoryhttps://github.com/siketyan/gh-labelx.git
max_upload_size
id631558
size30,196
Natsuki Ikeguchi (siketyan)

documentation

README

gh-labelx

Rust crates.io

Creates issue labels on GitHub idempotently through HashiCorp Terraform.

Features

  • Idempotent: Apply twice, changes once.
  • Easy: No configuration required if you are using gh CLI.
  • Simple: Just write a simple YAML manifest to create many labels at once.
  • Extensible: Requests to GitHub are powered by Terraform. You can customise additional labels or properties using hooks after generation.

Getting started

gh extension install siketyan/gh-labelx

Usages

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:

gh labelx -o <owner> -r <repo> plan -f <file>

Now apply to your GitHub repository:

gh labelx -o <owner> -r <repo> apply -f <file>

It's easy!

Commit count: 41

cargo fmt