Skip to content

Commit 57a9c26

Browse files
authored
feat: Add an action to label pr automatically (#1053)
Signed-off-by: Shouren Yang <[email protected]>
1 parent 0e8111e commit 57a9c26

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"kind/bug":
2+
- '^[Ff]ix(\(.*\))?:?.*'
3+
"kind/cleanup":
4+
- '^[Cc]hore(\(.*\))?:?.*'
5+
"kind/documentation":
6+
- '^[Dd]ocs?(\(.*\))?:?.*'
7+
"kind/enhancement":
8+
- '^[Rr]efactor(\(.*\))?:?.*'
9+
"kind/feature":
10+
- '^[Ff]eat(\(.*\))?:?.*'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "PR Labeler"
2+
on:
3+
pull_request_target:
4+
types: [opened, edited]
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
labeling:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: github/[email protected]
16+
with:
17+
configuration-path: .github/labeler.yml
18+
enable-versioned-regex: 0
19+
sync-labels: 1
20+
include-title: 1
21+
include-body: 0
22+
repo-token: ${{ github.token }}

0 commit comments

Comments
 (0)