Skip to content

Commit ffa7db3

Browse files
committed
more improvements per bob
Signed-off-by: Jeffrey Sica <me@jeefy.dev>
1 parent 0133a47 commit ffa7db3

File tree

4 files changed

+408
-85
lines changed

4 files changed

+408
-85
lines changed

.github/workflows/labeler-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ on:
1111
branches: [main]
1212
paths:
1313
- 'utilities/labeler/Dockerfile*'
14-
- 'utilities/labeler/oci/**'
14+
- 'utilities/labeler/**'
1515
pull_request:
1616
branches: [main]
1717
paths:
1818
- 'utilities/labeler/Dockerfile*'
19-
- 'utilities/labeler/oci/**'
19+
- 'utilities/labeler/**'
2020
workflow_dispatch:
2121

2222
env:

utilities/labeler/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
run:
2+
go run main.go https://raw.githubusercontent.com/mrbobbytables/cncf-automation/refs/heads/label-config/utilities/labeler/labels.yaml cncf automation 95 "/tag foo"
3+
image:
4+
docker build -t gha-labeler:latest .

utilities/labeler/labels.yaml

Lines changed: 199 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
autoCreateLabels: false
1+
autoCreateLabels: true
22
autoDeleteLabels: false
3+
definitionRequired: true
34

45
# Define labels, description, color
56
# Support ‘previous’ for label changes over time / changes in ownership
@@ -9,14 +10,190 @@ autoDeleteLabels: false
910

1011

1112
labels:
12-
- name: foo
13-
color: 00ff00
14-
description: foo stuff
15-
previously:
16-
- name: bar
17-
- name: baz
18-
color: 0000ff
19-
description: baz stuff
13+
- name: dd/adopters/complete
14+
description: DD Adopter Interviews have been completed
15+
color: 41cd40
16+
- name: dd/adopters/not-started
17+
description: Adopter interviews have not yet been started
18+
color: d93f0b
19+
- name: dd/adopters/in-progress
20+
description: DD Adopter Interviews are in progress
21+
color: 61D6C3
22+
- name: dd/complete
23+
description: DD has been completed
24+
color: 41cd40
25+
- name: dd/in-comment-period
26+
description: DD is in the public comment period
27+
color: 0052cc
28+
- name: dd/in-progress
29+
description: DD is in progress
30+
color: 61D6C3
31+
- name: dd/in-voting
32+
description: DD is currently in voting
33+
color: 74a0f4
34+
- name: dd/ready-for-assignment
35+
description: DD Prerequisites complete; ready to be assigned to a TOC member.
36+
color: fbca04
37+
- name: dd/waiting
38+
description: DD has been paused and will pick up at a later date
39+
color: d93f01
40+
- name: dd/triage/needs-adopters
41+
description: Additional adopters needed for DD application to be marked ready.
42+
color: b60205
43+
- name: dd/triage/incomplete-application
44+
description: Application incomplete; must be completed for application to be marked ready
45+
color: b60205
46+
- name: dd/gov-review/not-started
47+
description: Governance Review has not yet been started
48+
color: d93f0b
49+
- name: dd/gov-review/in-progress
50+
description: DD Governance Review is in progress
51+
color: 61D6C3
52+
- name: dd/gov-review/complete
53+
description: DD Governance Review has been completed
54+
color: 41cd40
55+
- name: dd/sec-review/not-started
56+
description: Security Review has not yet been started
57+
color: d93f0b
58+
- name: dd/sec-review/in-progress
59+
description: DD Security Review is in progress
60+
color: 61D6C3
61+
- name: dd/sec-review/complete
62+
description: DD Security Review has been completed
63+
color: 41cd40
64+
- name: dd/tech-review/not-started
65+
description: Tech Review has not yet been started
66+
color: d93f0b
67+
- name: dd/tech-review/in-progress
68+
description: DD Tech Review is in progress
69+
color: 61D6C3
70+
- name: dd/tech-review/complete
71+
description: DD Tech Review has been completed
72+
color: 41cd40
73+
- name: dd/needs-triage
74+
description: DD application has not been reviewed
75+
color: ededed
76+
- name: kind/dd
77+
description: Project DD or item related to the DD process
78+
color: 61D6C3
79+
- name: kind/initiative
80+
description: An initiative or an item related to imitative processes
81+
color: 61D6C3
82+
- name: kind/docs
83+
description: Docs related changes or updates
84+
color: 61D6C3
85+
- name: kind/meeting
86+
description: Item related to a meeting
87+
color: 61D6C3
88+
- name: kind/enhancement
89+
description: General items related to enhancements or improvements.
90+
color: 61D6C3
91+
- name: kind/subproject
92+
description: Item related to a subproject or subproject related process
93+
color: 61D6C3
94+
- name: level/graduation
95+
description: Item related to a graduation level project or the graduation criteria/process itself
96+
color: 0052cc
97+
- name: level/archived
98+
description: Item related to an archived level project or the archive criteria/process itself
99+
color: d93f0b
100+
- name: level/incubation
101+
description: Item related to an incubation level project or the incubation criteria/process itself
102+
color: ed0e81
103+
- name: level/sandbox
104+
description: Item related to a sandbox level project or the sandbox criteria/process itself
105+
color: e884e1
106+
- name: init/not-started
107+
description: Initiative has been accepted, but not started (in the backlog)
108+
color: d93f0b
109+
- name: init/in-progress
110+
description: Initiative is in progress and actively being worked on
111+
color: 61D6C3
112+
- name: init/complete
113+
description: Initiative has been completed
114+
color: 41cd40
115+
- name: init/stale
116+
description: Initiative is no longer actively being worked on
117+
color: b60205
118+
- name: triage/needs-information
119+
description: Needs additional information provided before it can be worked on
120+
color: b60205
121+
- name: triage/duplicate
122+
description: Duplicate issue or PR, can be closed
123+
color: ebf84a
124+
- name: triage/not-planned
125+
description: Out of scope, or not planned to be worked on
126+
color: d93f0b
127+
- name: triage/valid
128+
description: Issue or PR is valid with enough information to be actionable
129+
color: 0e8a16
130+
- name: help wanted
131+
description: ''
132+
color: '159818'
133+
- name: review/governance
134+
description: Project Governance Review
135+
color: '5319e7'
136+
- name: review/health
137+
description: Project Health Review
138+
color: '5319e7'
139+
- name: review/security
140+
description: Project Security Review
141+
color: '5319e7'
142+
- name: review/tech
143+
description: Project Tech Review
144+
color: '5319e7'
145+
- name: sub/contributor-strategy-and-advocacy
146+
description: TOC Contributor Strategy and Advocacy SubProject
147+
color: 924F23
148+
- name: sub/project-review
149+
description: TOC Project Review Subproject
150+
color: '3E4469'
151+
- name: sub/mentoring
152+
description: TOC Mentoring Subproject
153+
color: 6DCC2C
154+
- name: toc/initiative/AI
155+
description: TOC Artificial Intelligence Initiative
156+
color: d4c5f9
157+
- name: toc
158+
description: toc specific issue
159+
color: CF0CBE
160+
- name: gitvote
161+
description: ''
162+
color: ededed
163+
- name: gitvote/closed
164+
description: ''
165+
color: ededed
166+
- name: gitvote/passed
167+
description: ''
168+
color: ededed
169+
- name: vote open
170+
description: ''
171+
color: ededed
172+
- name: vote/open
173+
description: An election is open
174+
color: 0e8a16
175+
- name: vote/closed
176+
description: An election that has been completed
177+
color: 5c2908
178+
- name: vote/nomination
179+
description: A nomination or call for nominations
180+
color: E00EEF
181+
- name: tag/developer-experience
182+
description: TAG Developer Experience
183+
color: c2e0c6
184+
- name: tag/infrastructure
185+
description: TAG Infrastructure
186+
color: D786DA
187+
- name: tag/operational-resilience
188+
description: TAG Operational Resilience
189+
color: 83075D
190+
- name: tag/security-and-compliance
191+
description: TAG Security and Compliance
192+
color: 78C971
193+
- name: tag/workloads-foundation
194+
description: TAG Workloads Foundation
195+
color: 6AE2DC
196+
20197

21198

22199
# each rule should be evaluated to determine what the labels should look like
@@ -42,6 +219,19 @@ ruleset:
42219
- kind: apply-label
43220
label: "tag/{{ argv.0 }}" # to match input from string
44221

222+
- name: apply-toc
223+
kind: match
224+
spec:
225+
command: "/toc"
226+
rules:
227+
- match: ""
228+
actions:
229+
- kind: remove-label # removes label if present
230+
spec:
231+
match: needs-group
232+
- kind: apply-label
233+
label: "toc"
234+
45235
# Applies needs-triage label if no triage related label is present
46236
# this will account for conditions where a triage label is removed, the
47237
# needs-triage label will be reapplied

0 commit comments

Comments
 (0)