Skip to content

Commit 76dd744

Browse files
authored
Merge pull request #172 from hdefazio/add_pr_label
Add new workflow to label prs with needs_triage
2 parents 7967594 + 1929a18 commit 76dd744

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: label new prs
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- reopened
8+
- converted_to_draft
9+
- ready_for_review
10+
11+
jobs:
12+
add_label:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
16+
steps:
17+
- name: Add 'needs_triage' label if the pr is not a draft
18+
uses: actions-ecosystem/action-add-labels@v1
19+
if: github.event.pull_request.draft == false
20+
with:
21+
labels: needs_triage
22+
23+
- name: Remove 'needs_triage' label if the pr is a draft
24+
uses: actions-ecosystem/action-remove-labels@v1
25+
if: github.event.pull_request.draft == true
26+
with:
27+
labels: needs_triage

0 commit comments

Comments
 (0)