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

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 }}