From 779fe38ff99105e4ed1ccb3efaa453c40853ead4 Mon Sep 17 00:00:00 2001 From: bxdd Date: Sun, 14 Jan 2024 21:06:10 +0800 Subject: [PATCH] [ENH] add labeler --- .github/labeler.yml | 6 ++++++ .github/release-drafter.yml | 2 +- .github/workflows/labeler.yml | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) 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 0000000..bd31eaa --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,6 @@ +documentation: +- 'docs/**/*' +- '**/*.md' + +pending: +- any: ['**/*', '!docs/**/*', '!**/*.md'] diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 2ab917e..2820a3b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,4 +1,4 @@ -name-template: 'v$RESOLVED_VERSION 🌈' +name-template: 'v$RESOLVED_VERSION \U0001F308' tag-template: 'v$RESOLVED_VERSION' categories: - title: '\U0001F680 New Feature' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..ba65687 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "Add label automatically" +on: +- pull_request_target + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"