-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 2.08 KB
/
pr-auto-labeling.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
name: Auto Labeling on PR
on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]
jobs:
assign_labels:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Execute assign labels
id: action-assign-labels
uses: mauroalderete/action-assign-labels@v1
with:
pull-request-number: ${{ github.event.pull_request.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'accessibility'
nouns: ['accessibility', 'a11y']
labels: ['a11y']
- type: 'CI/CD'
nouns: ['ci', 'cd', 'cicd', 'ci/cd', 'CI/CD', 'build', 'builds', 'config', 'conf', 'configuration', 'configure']
labels: ['ci/cd']
- type: 'docs'
nouns: ['docs', 'documentation', 'doc']
labels: ['docs']
- type: 'enhancement'
nouns: ['improvement', 'enhancement', 'enhancements', 'improve']
labels: ['enhancement']
- type: 'feature'
nouns: ['feature', 'features', 'feat']
labels: ['feature']
- type: 'fix'
nouns: ['fix', 'fixed', 'bug', 'bugs']
labels: ['fix']
- type: 'chore'
nouns: ['chore', 'maintenance']
labels: ['maintenance']
- type 'performance'
nouns: ['perf', 'performance']
labels: ['performance']
- type: 'refactor'
nouns: ['refactor', 'refactored']
labels: ['refactor']
- type: 'revert'
nouns: ['revert', 'reverts']
labels: ['revert']
- type: 'style'
nouns: ['style', 'styles', 'styling', 'styled', 'structure']
labels: ['style']
- type: 'test'
nouns: ['test', 'tests', 'testing']
labels: ['testing']