Skip to content

Commit

Permalink
feat: Add labeler.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kurosakishigure committed Dec 28, 2024
1 parent 8c13d83 commit ab2aaab
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Pull Request Labeler

on:
pull_request:
types: [ opened ]

jobs:
labeler:
runs-on: ubuntu-latest
name: Add Labels
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add bug label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'fix:') }}
with:
labels: bug
- name: Add chore label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'chore:') }}
with:
labels: chore
- name: Add documentation label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'doc:') }}
with:
labels: documentation
- name: Add enhancement label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'feat:') }}
with:
labels: enhancement
- name: Add example label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'ex:') }}
with:
labels: example
- name: Add revert label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'revert:') }}
with:
labels: revert
- name: Add test label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'test:') }}
with:
labels: test

0 comments on commit ab2aaab

Please sign in to comment.