From f9024ca22386853392a1b04255d1878dd472f999 Mon Sep 17 00:00:00 2001 From: TennyZhuang Date: Wed, 29 Dec 2021 16:42:54 +0800 Subject: [PATCH] ci: add labeler action * ci: add labeler action * bug -> fix --- .github/labeler.yml | 14 ++++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..85496b919cfb9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +version: 1 +labels: +- label: "feature" + title: "^feat*" +- label: "fix" + title: "^fix*" +- label: "test" + title: "^test*" +- label: "refactor" + title: "^refactor*" +- label: "style" + title: "^style*" +- label: "chore" + title: "^chore*" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..2bcb75971394d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: Label PRs + +on: +- pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"