From 36f5d1f917a1b834ce86b44fd291f7daed2fe642 Mon Sep 17 00:00:00 2001 From: choidongkuen Date: Thu, 29 Feb 2024 16:15:28 +0900 Subject: [PATCH] =?UTF-8?q?CHORE=20:type-labeler=20=EC=B6=94=EA=B0=80=20(#?= =?UTF-8?q?161)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/type-labeler.yml | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/type-labeler.yml diff --git a/.github/workflows/type-labeler.yml b/.github/workflows/type-labeler.yml new file mode 100644 index 0000000..83a95be --- /dev/null +++ b/.github/workflows/type-labeler.yml @@ -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 +