-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (63 loc) · 2.68 KB
/
type-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 🕶️ Type labeler
on:
pull_request:
issues:
jobs:
add_label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: add ✨ feature label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'feat:') || startsWith(github.event.pull_request.title, 'feat:') }}
with:
labels: ✨ feature
- name: add 🐛 bug-fix label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'fix:') || startsWith(github.event.pull_request.title, 'fix:') }}
with:
labels: 🐛 bug-fix
- name: add ♻️ refactor label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'refactor:') || startsWith(github.event.pull_request.title, 'refactor:') }}
with:
labels: ♻️ refactor
- name: add 🎨 style label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'style:') || startsWith(github.event.pull_request.title, 'style:') }}
with:
labels: 🎨 style
- name: add 🏠 build label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'build:') || startsWith(github.event.pull_request.title, 'chore:') }}
with:
labels: 🏠 build
- name: add ✅ test label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'test:') || startsWith(github.event.pull_request.title, 'test:') }}
with:
labels: ✅ test
- name: add 📝 docs label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'docs:') || startsWith(github.event.pull_request.title, 'docs:') }}
with:
labels: 📝 docs
- name: add 📝 ci label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'ci:') || startsWith(github.event.pull_request.title, 'ci:') }}
with:
labels: 📝 ci
- name: add 💪 perf label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.issues.title, 'perf:') || startsWith(github.event.pull_request.title, 'perf:') }}
with:
labels: 💪 perf
- name: add 🔖 release label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'release:') }}
with:
labels: 🔖 release