From 0572eaaa80bfe832467c1de36efbb288f9e527f4 Mon Sep 17 00:00:00 2001 From: hexqi Date: Mon, 26 Aug 2024 20:42:33 +0800 Subject: [PATCH] chore: add auto labeler workflow --- .github/auto-labeler.yml | 19 +++++++++++++++++++ .github/workflows/auto-labeler.yml | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/auto-labeler.yml create mode 100644 .github/workflows/auto-labeler.yml diff --git a/.github/auto-labeler.yml b/.github/auto-labeler.yml new file mode 100644 index 000000000..60339cd46 --- /dev/null +++ b/.github/auto-labeler.yml @@ -0,0 +1,19 @@ +version: v1 + +labels: + - label: 'enhancement' + sync: true + matcher: + title: '^feat:.*' + - label: 'document' + sync: true + matcher: + title: '^docs:.*' + - label: 'bug' + sync: true + matcher: + title: '^fix:.*' + - label: 'ospp-2024' + sync: true + matcher: + baseBranch: '^ospp-2024/.*' \ No newline at end of file diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml new file mode 100644 index 000000000..e74592195 --- /dev/null +++ b/.github/workflows/auto-labeler.yml @@ -0,0 +1,15 @@ +name: Pull Request Auto Labeler + +on: + pull_request: + types: [opened, edited] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: fuxingloh/multi-labeler@v4 # v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} # optional, default to '${{ github.token }}' + config-path: .github/auto-labeler.yml # optional, default to '.github/labeler.yml'