Auto-labeling actions for pull requests (#6117)
This commit is contained in:
16
.github/workflows/labeler-needsreview.yml
vendored
Normal file
16
.github/workflows/labeler-needsreview.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: "Labels: Review"
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [review_requested]
|
||||
|
||||
jobs:
|
||||
add_label:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions-ecosystem/action-add-labels@v1
|
||||
with:
|
||||
labels: "Status: Needs Review"
|
||||
- uses: actions-ecosystem/action-remove-labels@v1
|
||||
with:
|
||||
labels: "Status: Awaiting Changes"
|
||||
12
.github/workflows/labeler-pr.yml
vendored
Normal file
12
.github/workflows/labeler-pr.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
name: "Labels: PR"
|
||||
|
||||
on:
|
||||
- pull_request_target
|
||||
|
||||
jobs:
|
||||
labeler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v3
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
Reference in New Issue
Block a user