Skip to content

Commit

Permalink
Merge pull request #7 from Kusitms-POPTATO-DEV/fix/auto-label
Browse files Browse the repository at this point in the history
Fix: PR 내용에 따라 Label 자동 설정되도록 수정
  • Loading branch information
yeonjookang authored Oct 11, 2024
2 parents 5f83205 + 3d735ba commit 2eb8d6c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 36 deletions.
30 changes: 30 additions & 0 deletions .github/labeler-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
filters:
- label: feat
regexs:
- /\bfeat\b/i
- /feature/i
targets: [title]
- label: bug
regexs:
- /bug/i
targets: [title]
- label: documentation
regexs:
- /docs/i
targets: [title]
- label: test
regexs:
- /test/i
targets: [title]
- label: fix
regexs:
- /fix/i
targets: [title]
- label: chore
regexs:
- /\bchore(\(.*\))?:/i
targets: [title]
- label: refactor
regexs:
- /refactor/i
targets: [title]
22 changes: 0 additions & 22 deletions .github/labeler.yml

This file was deleted.

36 changes: 22 additions & 14 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler
# example
name: Issue PR Labeler

name: Labeler
on: [pull_request_target]
on:
issues:
types:
- opened
- edited
pull_request: # or pull_request_target
types:
- opened
- reopened
- synchronize

jobs:
label:
permissions:
contents: read
pull-requests: write
main:
runs-on: ubuntu-latest

permissions:
contents: read # required to read configuration yml file
issues: write # required to add labels to issues
pull-requests: write # required to add labels to pull requests

steps:
- uses: actions/labeler@v4
- name: Run Issue PR Labeler
uses: hoho4190/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2eb8d6c

Please sign in to comment.