1+ name : Conventional Commit Labels
2+ on :
3+ pull_request_target :
4+ types : [opened, synchronize, reopened]
5+
6+ jobs :
7+ assign-labels :
8+ runs-on : ubuntu-latest
9+ name : Assign labels in pull request
10+ if : github.event.pull_request.merged == false
11+ steps :
12+ - name : Execute assign labels
13+ id : action-assign-labels
14+ uses : mauroalderete/action-assign-labels@v1
15+ with :
16+ github-token : ${{ secrets.LABELS_TOKEN }}
17+ conventional-commits : |
18+ conventional-commits:
19+ - type: 'fix'
20+ nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
21+ labels: ['bug']
22+ - type: 'feature'
23+ nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
24+ labels: ['feature']
25+ - type: 'breaking_change'
26+ nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
27+ labels: ['BREAKING CHANGE']
28+ - type: 'docs'
29+ nouns: ['DOCS', 'Docs', 'docs']
30+ labels: ['docs']
31+ - type: 'refactor'
32+ nouns: ['REFACTOR', 'Refactor', 'refactor']
33+ labels: ['refactor']
34+ - type: 'test'
35+ nouns: ['TEST', 'Test', 'test']
36+ labels: ['test']
37+ - type: 'style'
38+ nouns: ['STYLE', 'Style', 'style']
39+ labels: ['style']
40+ - type: 'chore'
41+ nouns: ['CHORE', 'Chore', 'chore']
42+ labels: ['chore']
43+ - type: 'ci'
44+ nouns: ['CI', 'Ci', 'ci']
45+ labels: ['ci']
46+ - type: 'perf'
47+ nouns: ['PERF', 'Perf', 'perf']
48+ labels: ['perf']
49+
0 commit comments