Skip to content

Commit 86434f0

Browse files
committed
Add file-based automated PR labeling
Signed-off-by: Bryan Richter <b@chreekat.net>
1 parent 38b2095 commit 86434f0

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
bazel:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- BUILD.bazel
5+
- MODULE.bazel
6+
- WORKSPACE.bzlmod
7+
- .bazelrc
8+
- .bazelversion
9+
- '**/BUILD.bazel'
10+
- 'bazel/**'
11+
12+
protobuf:
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- 'proto/**'
16+
17+
specification:
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- 'docs/**'
21+
22+
python:
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- 'py/**'
26+
27+
rust:
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- 'rust/**'
31+
32+
go:
33+
- changed-files:
34+
- any-glob-to-any-file:
35+
- 'go/**'
36+
37+
codegen:
38+
- changed-files:
39+
- any-glob-to-any-file:
40+
- 'codegen/**'
41+
42+
dependencies:
43+
- changed-files:
44+
- any-glob-to-any-file:
45+
- .gitmodules
46+
- .github/dependabot.yml
47+
48+
github_actions:
49+
- changed-files:
50+
- any-glob-to-any-file:
51+
- '.github/workflows/**'
52+
- '.github/actions/**'
53+
54+
documentation:
55+
- changed-files:
56+
- any-glob-to-any-file:
57+
- '*.md'

.github/workflows/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Labeler
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)