Automated PR labeling (#2301)

# Objective

- Currently only issues automatically have labels assigned to them on creation.
- The enables pull requests to have the same functionality and currently only adds the `needs-triage` label to all PRs.

## Solution

- Integrate `actions/labeler@v2` into the github workflows to automatically tag PRs.
- Add a `label-config.yml` file that specifies how PRs should be labeled.
This commit is contained in:
Nathan Ward 2021-06-07 20:53:27 +00:00
parent a404eb2acf
commit 17877e8aaa
2 changed files with 18 additions and 0 deletions

2
.github/label-config.yml vendored Normal file
View file

@ -0,0 +1,2 @@
needs-triage:
- "**"

16
.github/workflows/label.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: PR-Labeler
on:
pull_request_target:
branches:
- main
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/label-config.yml
sync-labels: true