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

Commit

Permalink
Don't autolabel insubstantial PRs 'pleasereview' (#6447)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3krit authored Jun 20, 2020
1 parent 1fae45f commit 6c16d15
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/auto-label-prs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Label new PRs
name: Label PRs
on:
pull_request:
types: [opened,ready_for_review]
Expand All @@ -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'

0 comments on commit 6c16d15

Please sign in to comment.