Skip to content

Commit 5058aa1

Browse files
authored
[CI] Add automatic labeler bot for pull requests (#152)
1 parent ae21908 commit 5058aa1

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Label PRs"
2+
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
auto-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Apply labels based on changed files
18+
uses: actions/labeler@v5
19+
with:
20+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21+
configuration-path: ".github/labeler.yml"

0 commit comments

Comments
 (0)