Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 6c16d15

Browse files
authored
Don't autolabel insubstantial PRs 'pleasereview' (#6447)
1 parent 1fae45f commit 6c16d15

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Label new PRs
1+
name: Label PRs
22
on:
33
pull_request:
44
types: [opened,ready_for_review]
@@ -7,14 +7,15 @@ jobs:
77
label-new-prs:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Label new drafts
10+
- name: Label drafts
1111
uses: andymckay/labeler@master
1212
if: github.event.pull_request.draft == true
1313
with:
1414
add-labels: 'A3-inprogress'
15-
- name: Label new PRs
15+
remove-labels: 'A0-pleasereview'
16+
- name: Label PRs
1617
uses: andymckay/labeler@master
17-
if: github.event.pull_request.draft == false
18+
if: github.event.pull_request.draft == false && ! contains(github.event.pull_request.labels.*.name, 'A2-insubstantial')
1819
with:
1920
add-labels: 'A0-pleasereview'
2021
remove-labels: 'A3-inprogress'

0 commit comments

Comments
 (0)