ci: add pr labeler

This commit is contained in:
Andelf
2022-01-07 18:45:12 +08:00
parent 3ea7635daa
commit b4371ce8a4
2 changed files with 19 additions and 0 deletions

4
.github/pr-labeler.yml vendored Normal file
View File

@@ -0,0 +1,4 @@
:type/feature: ['feature/*', 'feat/*']
:type/enhancement: ['enhancement/*', 'enh/*', 'enhance/*', 'improve/*']
:type/bug-fix: ['fix/*', 'fix*', 'bug/*', 'bug-fix/*', 'bugfix/*', 'bug-fixes/*', 'bugfixes/*']
:type/dev: ['chore/*', 'test/*', 'docs/*', 'build/*', 'ci/*', 'misc/*', 'dev/*']

15
.github/workflows/pr-labeler.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: PR Labeler
on:
pull_request:
types: [opened]
jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3.1.0
with:
# optional, .github/pr-labeler.yml is the default value
configuration-path: .github/pr-labeler.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}