Skip to content

Commit 64dce42

Browse files
committed
[CI] Add automatic labeler bot for pull requests
1 parent d25e0b7 commit 64dce42

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'task:mpi':
2+
- "tasks/mpi"
3+
'task:omp':
4+
- "tasks/omp"
5+
'task:seq':
6+
- "tasks/seq"
7+
'task:stl':
8+
- "tasks/stl"
9+
'task:tbb':
10+
- "tasks/tbb"
11+
ci:
12+
- ".github"
13+
- "appveyor.yml"

.github/workflows/labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Label PRs"
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
auto-label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Apply labels based on changed files
16+
uses: actions/labeler@v5
17+
with:
18+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
19+
configuration-path: ".github/labeler.yml"

0 commit comments

Comments
 (0)