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:
Nate Moore 2021-11-15 13:56:00 -06:00 committed by GitHub
parent 4e55be9006
commit 1579dd7ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

21
.github/labeler.yml vendored Normal file
View 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
View 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 }}"