-
Notifications
You must be signed in to change notification settings - Fork 57
35 lines (29 loc) · 963 Bytes
/
add-pr-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
name: Add PR label
on:
pull_request:
types: [opened, reopened, assigned, synchronize]
jobs:
add:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add `feature` label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.head_ref, 'feature/') }}
with:
labels: feature
- name: Add `ignore-for-release` label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.head_ref, 'release/') || startsWith(github.head_ref, 'github/') }}
with:
labels: ignore-for-release
- name: Add bugfix label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.head_ref, 'bugfix/') }}
with:
labels: bugfix
- name: Add `documentation` label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.head_ref, 'docs/') }}
with:
labels: documentation