Skip to content

Commit

Permalink
feat(ci): add pr-labeler.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Jan 26, 2024
1 parent 8b35d6e commit 2355f66
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr-feat: '/^(feat|style)/'
pr-fix: '^fix'
pr-perf: '^perf'
pr-docs: '^docs'
pr-test: '^test'
20 changes: 20 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Labeler
on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
if: github.repository == 'jdf2e/nutui'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ secrets.GIT_ACTION }}
configuration-path: .github/pr-labeler.yml

0 comments on commit 2355f66

Please sign in to comment.