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

[CI] Don't autolabel insubstantial PRs 'pleasereview' #6447

Merged
merged 1 commit into from
Jun 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be remove insubstantial here as well?

- 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'