From 5ad0be4152ec5be1a958439ddd26ba6492dd6bf8 Mon Sep 17 00:00:00 2001 From: Mara Date: Mon, 30 Oct 2023 19:25:19 +0100 Subject: [PATCH] chore: add labels action --- .github/workflows/add_labels.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/add_labels.yml diff --git a/.github/workflows/add_labels.yml b/.github/workflows/add_labels.yml new file mode 100644 index 0000000..f1cadb6 --- /dev/null +++ b/.github/workflows/add_labels.yml @@ -0,0 +1,23 @@ +name: Add labels +on: + issues: + types: [opened, edited, reopened] +jobs: + add_labels: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-ecosystem/action-add-labels@v1 + if: ${{ startsWith(github.event.issue.title, '[FR]:') }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: | + ✨ Enhancement + - uses: actions-ecosystem/action-add-labels@v1 + if: ${{ startsWith(github.event.issue.title, '[Bug]:') }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: | + 🐛 Bug + +