-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.35 KB
/
labeler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: PR Label Assigner
on:
pull_request:
types: [opened, converted_to_draft, ready_for_review]
workflow_dispatch:
permissions:
pull-requests: write
jobs:
draft_pr:
if: (github.event.pull_request.draft == true)
runs-on: ubuntu-20.04
name: Add WIP label
steps:
- name: Add WIP Label
uses: buildsville/add-remove-label@6008d7bd99d3baeb7c04033584e68f8ec80b198b # v1
with:
token: ${{secrets.GITHUB_TOKEN}}
label: work-in-progress
type: add
- name: Remove Ready for Review Label
uses: buildsville/add-remove-label@6008d7bd99d3baeb7c04033584e68f8ec80b198b # v1
with:
token: ${{secrets.GITHUB_TOKEN}}
label: ready-for-review
type: remove
ready_for_review_pr:
if: (github.event.pull_request.draft == false)
runs-on: ubuntu-20.04
name: Remove label
steps:
- name: Remove WIP Label
uses: buildsville/add-remove-label@6008d7bd99d3baeb7c04033584e68f8ec80b198b # v1
with:
token: ${{secrets.GITHUB_TOKEN}}
label: work-in-progress
type: remove
- name: Add Ready for Review Label
uses: buildsville/add-remove-label@6008d7bd99d3baeb7c04033584e68f8ec80b198b # v1
with:
token: ${{secrets.GITHUB_TOKEN}}
label: ready-for-review
type: add