mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 06:22:01 +00:00
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:
parent
a404eb2acf
commit
17877e8aaa
2 changed files with 18 additions and 0 deletions
2
.github/label-config.yml
vendored
Normal file
2
.github/label-config.yml
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
needs-triage:
|
||||
- "**"
|
16
.github/workflows/label.yml
vendored
Normal file
16
.github/workflows/label.yml
vendored
Normal 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
|
Loading…
Reference in a new issue