-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52efb79
commit 36f5d1f
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
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.pull_request.title, 'feat:') | ||
with: | ||
labels: ✨ feature | ||
|
||
- name: add 🐛 bug-fix label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: 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.pull_request.title, 'refactor:') | ||
with: | ||
labels: ♻️ refactor | ||
|
||
- name: add 🎨 style label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: 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.pull_request.title, 'chore:') | ||
with: | ||
labels: 🏗️ build | ||
|
||
- name: add ✅ test label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: 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.pull_request.title, 'docs:') | ||
with: | ||
labels: 📝 docs | ||
|
||
- name: add 👷 ci label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
if: 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.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 | ||
|