Don't autolabel insubstantial PRs 'pleasereview' (#6447)

This commit is contained in:
s3krit
2020-06-20 13:31:12 +02:00
committed by GitHub
parent 1951962836
commit 04c62d6c5a
+5 -4
View File
@@ -1,4 +1,4 @@
name: Label new PRs
name: Label PRs
on:
pull_request:
types: [opened,ready_for_review]
@@ -7,14 +7,15 @@ jobs:
label-new-prs:
runs-on: ubuntu-latest
steps:
- name: Label new drafts
- name: Label drafts
uses: andymckay/labeler@master
if: github.event.pull_request.draft == true
with:
add-labels: 'A3-inprogress'
- name: Label new PRs
remove-labels: 'A0-pleasereview'
- name: Label PRs
uses: andymckay/labeler@master
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && ! contains(github.event.pull_request.labels.*.name, 'A2-insubstantial')
with:
add-labels: 'A0-pleasereview'
remove-labels: 'A3-inprogress'