-
Notifications
You must be signed in to change notification settings - Fork 97
38 lines (32 loc) · 983 Bytes
/
label.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
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
name: Auto-label PRs
on:
pull_request:
types:
- opened
- synchronize
env:
TOKEN: "${{ secrets.GITHUB_TOKEN }}"
jobs:
# To view the configuration, go to: .github/labeler.yml
triage:
name: Apply triage labels
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: ${{ env.TOKEN }}
in-progress:
name: Flag a PR as work-in-progress if in draft
runs-on: ubuntu-latest
steps:
- name: Flag work in progress
if: |
github.event.pull_request.draft == true &&
!contains(github.event.pull_request.labels.*.name, 'on hold') &&
!contains(github.event.pull_request.labels.*.name, 'blocked')
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ env.TOKEN }}
labels: work in progress