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

Commit

Permalink
[CI] Auto-label new PRs according to draft status (#6361)
Browse files Browse the repository at this point in the history
* add auto-label github action

* Add missing 'remove-labels' line
  • Loading branch information
s3krit authored Jun 16, 2020
1 parent 1095920 commit 1f536e9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-label-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Label new PRs
on:
pull_request:
types: [opened,ready_for_review]

jobs:
label-new-prs:
runs-on: ubuntu-latest
steps:
- name: Label new drafts
uses: andymckay/labeler@master
if: github.event.pull_request.draft == true
with:
add-labels: 'A3-inprogress'
- name: Label new PRs
uses: andymckay/labeler@master
if: github.event.pull_request.draft == false
with:
add-labels: 'A0-pleasereview'
remove-labels: 'A3-inprogress'

0 comments on commit 1f536e9

Please sign in to comment.