We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7967594 + 1929a18 commit 76dd744Copy full SHA for 76dd744
.github/workflows/label-new-prs.yaml
@@ -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
27
0 commit comments