Skip to content

Commit d8aeb1d

Browse files
authored
Merge pull request game-by-virtuals#82 from game-by-virtuals/ci/yang-add-auto-pr-labeler
[CI] Add Auto PR Labeler
2 parents cd1fcaf + afab4ae commit d8aeb1d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/pr-labeler-config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 1
2+
appendOnly: true
3+
labels:
4+
- label: "bugfix"
5+
title: "(?i)fix|bug"
6+
- label: "documentation"
7+
title: "(?i)docs|documentation"
8+
- label: "enhancement"
9+
title: "(?i)feat|feature|enhance|improve"
10+
- label: "plugin"
11+
title: "(?i)plugin"
12+
- label: "test"
13+
title: "(?i)test"

.github/workflows/pr-labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto Label PR
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
types: [opened, edited, reopened, synchronize]
7+
8+
jobs:
9+
label-plugin-pr:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Auto Apply Labels
16+
uses: srvaroa/labeler@master
17+
with:
18+
config_path: .github/pr-labeler-config.yml
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)