Skip to content
Snippets Groups Projects
Commit d4e6013d authored by s3krit's avatar s3krit Committed by GitHub
Browse files

[CI] Don't autolabel insubstantial PRs 'pleasereview' (#1293)

* Don't label insubstantial PRs 'pleasereview'

* Update auto-label-prs.yml

* Update auto-label-prs.yml
parent 7fd36394
Branches
No related merge requests found
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'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment