From 0d56974cd64d2b22306a91ad70d11dee1162a954 Mon Sep 17 00:00:00 2001 From: hexqi Date: Mon, 26 Aug 2024 15:24:01 +0800 Subject: [PATCH] chore: add labeler workflow --- .github/labeler.yml | 11 +++++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 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 000000000..d873fd952 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +bug: + - title: 'fix*' + +enhancement: + - title: 'feat*' + +ospp-2024: + - base-branch: ['ospp-2024/*'] + +document: + - '**/*.md' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..cb5b7b699 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: Pull Request Labeler + +on: + pull_request: + types: [opened, edited] + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + sync-labels: true