Skip to content

Commit 79c9e7a

Browse files
authored
ci: add automatic PR labeler (#2266)
* feat(ci): add automatic pr labeler Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * fix: yaml lint Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: rename label Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: fix style and add more labeling files Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: change name and path Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: add pull_request_target Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: update version Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> * chore: add .rst Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp> Signed-off-by: Shumpei Wakabayashi <shumpei.wakabayashi@tier4.jp>
1 parent f75c14b commit 79c9e7a

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/labeler.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
ci:
2+
- .github/**/*
3+
- "*.json"
4+
- "*.yaml"
5+
- "*.cfg"
6+
- .clang-format
7+
- .gitignore
8+
- .prettierignore
9+
document:
10+
- docs/**/*
11+
- "**/*.txt"
12+
- "**/*.md"
13+
- "**/*.rst"
14+
- "**/*.jpg"
15+
- "**/*.png"
16+
- "**/*.svg"
17+
common:
18+
- common/**/*
19+
control:
20+
- control/**/*
21+
evaluator:
22+
- evaluator/**/*
23+
launch:
24+
- launch/**/*
25+
localization:
26+
- localization/**/*
27+
map:
28+
- map/**/*
29+
perception:
30+
- perception/**/*
31+
planning:
32+
- planning/**/*
33+
sensing:
34+
- sensing/**/*
35+
simulator:
36+
- simulator/**/*
37+
system:
38+
- system/**/*
39+
tools:
40+
- tools/**/*
41+
vehicle:
42+
- vehicle/**/*

.github/workflows/pr-labeler.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: pr-labeler
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
9+
jobs:
10+
label:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v4
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
configuration-path: .github/labeler.yaml

0 commit comments

Comments
 (0)