Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8c9eb0

Browse files
committed
feat: ✨ adds pull request labeler
1 parent 0d5c3cd commit b8c9eb0

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/label.yml

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Label Pull Requests 🏷️
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, labeled, unlabeled]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
assign-labels:
13+
runs-on: ubuntu-latest
14+
name: Assign labels in pull request 🏷️
15+
if: github.event.pull_request.merged == false
16+
steps:
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v3
19+
20+
- name: Assign Labels 🏷️
21+
id: action-assign-labels
22+
uses: mauroalderete/action-assign-labels@v1
23+
with:
24+
pull-request-number: ${{ github.event.pull_request.number }}
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
conventional-commits: |
27+
conventional-commits:
28+
- type: 'fix'
29+
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
30+
labels: ['bug 🐝', 'fix 🐝']
31+
- type: 'feature'
32+
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
33+
labels: ['feature ✨']
34+
- type: 'breaking_change'
35+
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
36+
labels: ['breaking 💥']
37+
- type: 'documentation'
38+
nouns: ['doc', 'docu', 'document', 'documentation']
39+
labels: ['documentation 📖']
40+
- type: 'build'
41+
nouns: ['build', 'rebuild']
42+
labels: ['build 🔧']
43+
- type: 'chore'
44+
nouns: ['chore', 'tidy', 'cleanup']
45+
labels: ['chore 🧹']
46+
- type: 'dependencies'
47+
nouns: ['dependency', 'dependencies', 'package', 'packages', 'bump', 'dependabot']
48+
labels: ['dependencies 🤖']
49+
- type: 'duplicate'
50+
nouns: ['duplicate', 'dupe', 'copy']
51+
labels: ['duplicate 2️⃣']
52+
- type: 'good_first_issue'
53+
nouns: ['good first issue', 'beginner', 'newcomer', 'first-timer']
54+
labels: ['good first issue 🍩']
55+
- type: 'help_wanted'
56+
nouns: ['help wanted', 'need help', 'assistance required']
57+
labels: ['help wanted ❕']
58+
- type: 'proposal'
59+
nouns: ['proposal', 'suggest', 'suggestion']
60+
labels: ['proposal 🔮']
61+
- type: 'question'
62+
nouns: ['question', 'inquiry', 'query']
63+
labels: ['question ❓']
64+
- type: 'test'
65+
nouns: ['test', 'testing', 'tests']
66+
labels: ['test 🧪']
67+
- type: 'triage'
68+
nouns: ['triage', 'sort', 'prioritize']
69+
labels: ['triage ⚠️']
70+
- type: 'wontfix'
71+
nouns: ['wontfix', 'will not fix', 'not fixing']
72+
labels: ['wontfix 🔨']
73+
- type: 'style'
74+
nouns: ['style', 'formatting', 'format']
75+
labels: ['style 🎀']
76+
- type: 'security'
77+
nouns: ['security', 'secure', 'safety']
78+
labels: ['security 🔒']
79+
- type: 'performance'
80+
nouns: ['performance', 'speed', 'optimization']
81+
labels: ['performance 🚀']
82+
- type: 'refactor'
83+
nouns: ['refactor', 'refactoring', 'rework']
84+
labels: ['refactor 🛠']
85+
- type: 'release'
86+
nouns: ['release', 'deploy', 'deployment']
87+
labels: ['release 🚀']
88+
- type: 'ci'
89+
nouns: ['ci', 'continuous integration', 'CI/CD']
90+
labels: ['ci 🚀']
91+
- type: 'hacktoberfest'
92+
nouns: ['hacktoberfest', 'october', 'open source']
93+
labels: ['hacktoberfest 🎃']
94+
maintain-labels-not-matched: false
95+
apply-changes: true

0 commit comments

Comments
 (0)