Automatically add PR labels (#1835)
* chore: add PR labeler * chore: update labeler config * chore: add action label * refactor: use terse syntax
This commit is contained in:
parent
4e55be9006
commit
1579dd7ff9
2 changed files with 33 additions and 0 deletions
21
.github/labeler.yml
vendored
Normal file
21
.github/labeler.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# See https://github.com/actions/labeler
|
||||||
|
|
||||||
|
example:
|
||||||
|
- examples/**/*
|
||||||
|
|
||||||
|
action:
|
||||||
|
- .github/workflows/**
|
||||||
|
|
||||||
|
docs:
|
||||||
|
- docs/**
|
||||||
|
|
||||||
|
www:
|
||||||
|
- www/**
|
||||||
|
|
||||||
|
i18n:
|
||||||
|
- any:
|
||||||
|
- 'docs/src/pages/*/**'
|
||||||
|
- '!docs/src/pages/core-concepts/**'
|
||||||
|
- '!docs/src/pages/guides/**'
|
||||||
|
- '!docs/src/pages/migration/**'
|
||||||
|
- '!docs/src/pages/reference/**'
|
12
.github/workflows/label.yml
vendored
Normal file
12
.github/workflows/label.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: Label PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
- pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
triage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v3
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
Loading…
Reference in a new issue