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 depending on status (#1267)
Browse files Browse the repository at this point in the history
* Add auto-labelling github action

* Update auto-label-prs.yml

* Update auto-label-prs.yml

* Update auto-label-prs.yml
  • Loading branch information
s3krit committed Jun 16, 2020
1 parent 72bb3df commit 7a21317
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/auto-label-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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'

0 comments on commit 7a21317

Please sign in to comment.