Skip to content

Commit b3607e7

Browse files
committed
chore(ci): define Github labels as code with a workflow
- exact same labels as existing ones - allow for future tracked modifications of labels - labels workflow dry-runs on PRs
1 parent 8172d8b commit b3607e7

File tree

2 files changed

+129
-0
lines changed

2 files changed

+129
-0
lines changed

.github/labels.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Lifecycle labels
2+
- name: "DO NOT MERGE"
3+
color: "ba1b48"
4+
description: "This PR must not be merged in its current state"
5+
- name: "lifecycle/frozen"
6+
color: "2476B2"
7+
- name: "lifecycle/stale"
8+
color: "ededed"
9+
10+
# General category labels
11+
- name: "bug"
12+
color: "d73a4a"
13+
description: "Something isn't working"
14+
- name: "documentation"
15+
color: "0075ca"
16+
description: "Improvements or additions to documentation or examples"
17+
- name: "enhancement"
18+
color: "a2eeef"
19+
description: "New feature or request"
20+
- name: "needs information"
21+
color: "d876e3"
22+
description: "Further information is needed"
23+
- name: "needs investigation"
24+
color: "147F45"
25+
description: "It is currently unclear if there is an issue"
26+
- name: "good first issue"
27+
color: "7057ff"
28+
description: "Good for newcomers"
29+
- name: "help wanted"
30+
color: "008672"
31+
description: "Looking for someone to address this"
32+
- name: "ci"
33+
color: "e99695"
34+
description: "This focuses on changes to the CI process"
35+
- name: "cleanup"
36+
color: "BFD4F2"
37+
description: "Code quality improvement"
38+
- name: "dependencies"
39+
color: "0366d6"
40+
description: "This primarily focuses on changing a dependency"
41+
- name: "testing"
42+
color: "220233"
43+
description: "This primarily focuses on testing"
44+
- name: "monitoring"
45+
color: "97450A"
46+
description: "This primarily focuses on logs, metrics, and/or tracing"
47+
- name: "incident response"
48+
color: "BE3D15"
49+
- name: "github_actions"
50+
color: "000000"
51+
description: "Pull requests that update GitHub Actions code"
52+
- name: "go"
53+
color: "16e2e2"
54+
description: "Pull requests that update Go code"
55+
56+
# Avalanchego specific labels
57+
- name: "antithesis"
58+
color: "1d76db"
59+
description: "Related to an issue reported by Antithesis"
60+
- name: "bubble votes"
61+
color: "3C9CDD"
62+
- name: "consensus"
63+
color: "4444ff"
64+
description: "This involves consensus"
65+
- name: "continuous staking"
66+
color: "f9d0c4"
67+
- name: "Durango"
68+
color: "DAF894"
69+
description: "durango fork"
70+
- name: "gossiping upgrade"
71+
color: "c2e0c6"
72+
- name: "merkledb"
73+
color: "0e8a16"
74+
- name: "networking"
75+
color: "88E841"
76+
description: "This involves networking"
77+
- name: "sdk"
78+
color: "72ED25"
79+
description: "This involves SDK tooling or frameworks"
80+
- name: "storage"
81+
color: "3F2A70"
82+
description: "This involves storage primitives"
83+
- name: "Uptime Tracking"
84+
color: "d4c5f9"
85+
- name: "vm"
86+
color: "d1f7a0"
87+
description: "This involves virtual machines"
88+
- name: "warp"
89+
color: "4FC611"
90+
- name: "Warp Signature API"
91+
color: "68A7EA"
92+
93+
# ACP labels
94+
- name: "acp103"
95+
color: "AB2C58"
96+
- name: "acp113"
97+
color: "3359BA"
98+
- name: "acp118"
99+
color: "DFC715"
100+
- name: "acp125"
101+
color: "bfdadc"
102+
- name: "acp20"
103+
color: "DB7D37"
104+
- name: "acp77"
105+
color: "45CDF2"

.github/workflows/labels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: labels
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- .github/labels.yml
8+
- .github/workflows/labels.yml
9+
pull_request: # dry run only
10+
paths:
11+
- .github/labels.yml
12+
- .github/workflows/labels.yml
13+
14+
jobs:
15+
labeler:
16+
permissions:
17+
contents: read
18+
issues: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: crazy-max/ghaction-github-labeler@v5
23+
with:
24+
dry-run: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)