diff --git a/.github/workflows/autoLabel.yml b/.github/workflows/autoLabel.yml new file mode 100644 index 0000000..48065ea --- /dev/null +++ b/.github/workflows/autoLabel.yml @@ -0,0 +1,20 @@ +name: Auto Labeler +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write + steps: + - name: Check Labels + id: labeler + uses: jimschubert/labeler-action@v2 + with: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml deleted file mode 100644 index 5996814..0000000 --- a/.github/workflows/label.yml +++ /dev/null @@ -1,44 +0,0 @@ -# labeler "full" schema - -# enable labeler on issues, prs, or both. -enable: - issues: true - prs: true - -# comments object allows you to specify a different message for issues and prs -comments: - issues: | - 이슈 작성하느라 고생 많았어요!! 새 기능도 아좌좟!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🎇 - prs: | - PR 작성하느라 고생 많았어요!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🫶 - -# Labels is an object where: -# - keys are labels -# - values are objects of { include: [ pattern ], exclude: [ pattern ] } -# - pattern must be a valid regex, and is applied globally to -# title + description of issues and/or prs (see enabled config above) -# - 'include' patterns will associate a label if any of these patterns match -# - 'exclude' patterns will ignore this label if any of these patterns match -labels: - ":bug: BUG": - include: ['\bBug\b', '\bbug\b', '\bFix\b', '\bfix\b'] - ":sparkles: FEAT": - include: ['\bFeat\b', '\bfeat\b', '\bFeature\b', '\bfeature\b'] - ":memo: DOCS": - include: ['\bDocs\b', '\bdocs\b', '\bREADME\b'] - ":package: CHORE": - include: ['\bChore\b', '\bchore\b'] - ":lipstick: DESIGN": - include: ['\bDesign\b', '\bdesign\b'] - ":rocket: API": - include: ['\bAPI\b', '\bapi\b'] - ":recycle: REFACTOR": - include: ['\bRefactor\b', '\brefactor\b'] - ":wrench: INIT": - include: ['\bINIT\b', '\bInit\b', '\binit\b'] - ":twisted_rightwards_arrows: MERGE": - include: ['\bMERGE\b', '\bMerge\b', '\bmerge\b'] - ":ambulance: !HOTFIX": - include: ['\bHOTFIX\b', '\bhotfix\b'] - ":bookmark: RELEASE": - include: ['\bRelease\b', '\brelease\b']