Skip to content

Commit 7e524ab

Browse files
authored
[CI] Consolidate label workflows into label-manager.yml; update component-label-map.yml (#9583)
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
1 parent 021a6e0 commit 7e524ab

File tree

3 files changed

+63
-47
lines changed

3 files changed

+63
-47
lines changed

.github/component-label-map.yml

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ registry:
88
- data/registry/**
99

1010
# Localization labels
11+
i18n:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- i18n/**
1115
lang:bn:
1216
- changed-files:
1317
- any-glob-to-any-file:
@@ -46,10 +50,27 @@ lang:zh:
4650
- content/zh/**
4751

4852
# Special Interest Groups labels
53+
sig:collector:
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- content/en/docs/collector/**
4957
sig:cpp:
5058
- changed-files:
5159
- any-glob-to-any-file:
5260
- content/en/docs/languages/cpp/**
61+
sig:demo:
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- content/en/docs/demo/**
65+
sig:dotnet:
66+
- changed-files:
67+
- any-glob-to-any-file:
68+
- content/en/docs/languages/net/**
69+
- content/en/docs/zero-code/net/**
70+
sig:enduser:
71+
- changed-files:
72+
- any-glob-to-any-file:
73+
- content/en/community/end-user/**
5374
sig:erlang:
5475
- changed-files:
5576
- any-glob-to-any-file:
@@ -59,6 +80,10 @@ sig:go:
5980
- any-glob-to-any-file:
6081
- content/en/docs/languages/go/**
6182
- content/en/docs/zero-code/go/**
83+
sig:helm:
84+
- changed-files:
85+
- any-glob-to-any-file:
86+
- content/en/docs/kubernetes/helm/**
6287
sig:java:
6388
- changed-files:
6489
- any-glob-to-any-file:
@@ -69,11 +94,18 @@ sig:javascript:
6994
- any-glob-to-any-file:
7095
- content/en/docs/languages/js/**
7196
- content/en/docs/zero-code/js/**
72-
sig:dotnet:
97+
sig:kotlin:
7398
- changed-files:
7499
- any-glob-to-any-file:
75-
- content/en/docs/languages/net/**
76-
- content/en/docs/zero-code/net/**
100+
- content/en/docs/languages/kotlin/**
101+
sig:obi:
102+
- changed-files:
103+
- any-glob-to-any-file:
104+
- content/en/docs/zero-code/obi/**
105+
sig:operator:
106+
- changed-files:
107+
- any-glob-to-any-file:
108+
- content/en/docs/kubernetes/operator/**
77109
sig:php:
78110
- changed-files:
79111
- any-glob-to-any-file:
@@ -92,39 +124,29 @@ sig:rust:
92124
- changed-files:
93125
- any-glob-to-any-file:
94126
- content/en/docs/languages/rust/**
95-
sig:swift:
96-
- changed-files:
97-
- any-glob-to-any-file:
98-
- content/en/docs/languages/swift/**
99-
sig:operator:
100-
- changed-files:
101-
- any-glob-to-any-file:
102-
- content/en/docs/kubernetes/operator/**
103-
sig:helm:
104-
- changed-files:
105-
- any-glob-to-any-file:
106-
- content/en/docs/kubernetes/helm/**
107127
sig:security:
108128
- changed-files:
109129
- any-glob-to-any-file:
110130
- content/en/docs/security/**
111-
sig:demo:
112-
- changed-files:
113-
- any-glob-to-any-file:
114-
- content/en/docs/demo/**
115-
sig:collector:
131+
sig:spec:
116132
- changed-files:
117133
- any-glob-to-any-file:
118-
- content/en/docs/collector/**
119-
sig:enduser:
134+
- content/en/docs/specs/**
135+
sig:swift:
120136
- changed-files:
121137
- any-glob-to-any-file:
122-
- content/en/community/end-user/**
123-
sig:spec:
138+
- content/en/docs/languages/swift/**
139+
140+
# CI & Infrastructure labels
141+
CI/infra:
124142
- changed-files:
125143
- any-glob-to-any-file:
126-
- content/en/docs/specs/**
127-
sig:obi:
144+
- .devcontainer/**
145+
- .github/**
146+
- config/**
147+
148+
dependencies:
128149
- changed-files:
129150
- any-glob-to-any-file:
130-
- content/en/docs/zero-code/obi/**
151+
- package.json
152+
- .gitmodules
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# To learn more about this workflow, see:
22
# https://opentelemetry.io/site/build/ci-workflows/#pr-approval-labels
3-
name: PR approval labels
3+
name: Label manager
44

55
on:
66
pull_request_target:
@@ -18,6 +18,19 @@ permissions:
1818
contents: read
1919

2020
jobs:
21+
add-component-labels:
22+
name: Add component labels
23+
if: github.event_name == 'pull_request_target'
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
pull-requests: write
28+
steps:
29+
- uses: actions/checkout@v6
30+
- uses: actions/labeler@v6
31+
with:
32+
configuration-path: '.github/component-label-map.yml'
33+
2134
update-approval-labels:
2235
name: Update approval labels
2336
runs-on: ubuntu-latest

.github/workflows/label-prs.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)