Skip to content

Commit

Permalink
chore(ci): setup labeler and auto-assign-action
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Jun 3, 2024
1 parent 271b09d commit fe05833
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://github.com/actions/labeler

docs:
- '**/*.md'

core:
- '.vitepress/**'
24 changes: 24 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Pull Request Labeler'
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Label PRs
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-assign to core PRs
if: contains(github.event.pull_request.labels.*.name, 'core')
uses: kentaro-m/auto-assign-action@v1
with:
assignees: [taskylizard]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fe05833

Please sign in to comment.