mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
chore(ci): setup labeler and auto-assign-action
This commit is contained in:
parent
271b09dbfe
commit
fe05833075
2 changed files with 31 additions and 0 deletions
7
.github/labeler.yml
vendored
Normal file
7
.github/labeler.yml
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# See https://github.com/actions/labeler
|
||||
|
||||
docs:
|
||||
- '**/*.md'
|
||||
|
||||
core:
|
||||
- '.vitepress/**'
|
||||
24
.github/workflows/labeler.yml
vendored
Normal file
24
.github/workflows/labeler.yml
vendored
Normal file
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue