Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Nov 19, 2018
0 parents commit 6bf0f38
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github-labeler
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
github-labeler
==============

CLI that sets GitHub labels exactly as written in YAML file

## Usage

```console
$ go build
$ ./github-labeler
```

## What this app does

- Create a label (e.g. when no label described in YAML)
- Edit a label (e.g. when its color was changed)
- Delete a label (e.g. when the label not described in YAML exists on GitHub)

## YAML example

```yaml
labels:
- name: kind/proactive
description: Categorizes issue or PR as related to proactive tasks.
color: 9CCC65
- name: kind/reactive
description: Categorizes issue or PR as related to reactive tasks.
color: FFA000

repos:
- name: org/repo
labels:
- kind/proactive
- kind/reactive
```
## Author
@b4b4r07
## License
MIT
50 changes: 50 additions & 0 deletions labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This config is example

labels:
- name: "area/kubernetes"
description: "Indicates an issue on Kubernetes area."
color: "1d76db"
- name: "area/security"
description: "Indicates an issue on security area."
color: "1d76db"
- name: "kind/discussion"
description: "Categorizes issue or PR as related to discussion."
color: "bfd4f2"
- name: "kind/incident"
description: "Categorizes issue or PR as related to an incident."
color: "d93f0b"
- name: "kind/proactive"
description: "Categorizes issue or PR as related to proactive tasks."
color: "9CCC65"
- name: "kind/reactive"
description: "Categorizes issue or PR as related to reactive tasks."
color: "FFA000"
- name: "lifecycle/stale"
description: "Denotes an issue or PR has remained open with no activity and has become stale."
color: "784212"
- name: "lifecycle/frozen"
description: "Indicates that an issue or PR should not be auto-closed due to staleness."
color: "C2F8FF"
- name: "P0"
description: ""
color: "d93f0b"
- name: "P1"
description: ""
color: "fbca04"
- name: "P2"
description: ""
color: "f9bb5e"

repos:
- name: b4b4r07/github-labeler
labels:
- area/kubernetes
- area/security
- kind/discussion
- kind/incident
- kind/proactive
- kind/reactive
- lifecycle/stale
- P0
- P1
- P2
Loading

0 comments on commit 6bf0f38

Please sign in to comment.