Skip to content

Commit 50284f8

Browse files
authored
Add pr labeler workflow (#4313)
1 parent 6f694e3 commit 50284f8

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

.github/component-label-map.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
blog:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- content/en/blog/**
5+
sig:cpp:
6+
- changed-files:
7+
- any-glob-to-any-file:
8+
- content/en/docs/languages/cpp/**
9+
sig:erlang:
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- content/en/docs/languages/erlang/**
13+
sig:go:
14+
- changed-files:
15+
- any-glob-to-any-file:
16+
- content/en/docs/languages/go/**
17+
sig:java:
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- content/en/docs/languages/java/**
21+
sig:js:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- content/en/docs/languages/js/**
25+
sig:dotnet:
26+
- changed-files:
27+
- any-glob-to-any-file:
28+
- content/en/docs/languages/net/**
29+
sig:php:
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- content/en/docs/languages/php/**
33+
sig:python:
34+
- changed-files:
35+
- any-glob-to-any-file:
36+
- content/en/docs/languages/python/**
37+
sig:ruby:
38+
- changed-files:
39+
- any-glob-to-any-file:
40+
- content/en/docs/languages/ruby/**
41+
sig:rust:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- content/en/docs/languages/rust/**
45+
sig:swift:
46+
- changed-files:
47+
- any-glob-to-any-file:
48+
- content/en/docs/languages/swift/**
49+
sig:operator:
50+
- changed-files:
51+
- any-glob-to-any-file:
52+
- content/en/docs/kubernetes/operator/**
53+
sig:helm:
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- content/en/docs/kubernetes/helm/**
57+
sig:security:
58+
- changed-files:
59+
- any-glob-to-any-file:
60+
- content/en/docs/security/**
61+
sig:demo:
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- content/en/docs/demo/**
65+
sig:collector:
66+
- changed-files:
67+
- any-glob-to-any-file:
68+
- content/en/docs/collector/**
69+
sig:enduser:
70+
- changed-files:
71+
- any-glob-to-any-file:
72+
- content/en/community/end-user/**
73+
sig:spec:
74+
- changed-files:
75+
- any-glob-to-any-file:
76+
- content/en/docs/specs/**

.github/workflows/label-prs.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Label PR'
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
name: 'Add component labels'
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/labeler@v5
15+
with:
16+
configuration-path: '.github/component-label-map.yml'

0 commit comments

Comments
 (0)