From 667fb0e4d99012dc24aa468230eabcd240fcde8a Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Sat, 17 Dec 2022 00:12:33 +0800 Subject: [PATCH] add label to PR Automatically (#1393) * auto_add_label * add md file to rule * change name and rules * change_label_name * change_rule_syntax * change match rule * change label name --- .github/labeler.yml | 7 +++++++ .github/workflows/labeler.yml | 14 ++++++++++++++ 2 files changed, 21 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..7671223e9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,7 @@ +documentation: +- 'docs/**/*' +- '*/**/*.md' +- '*.md' + +waiting for triage: +- all: ['!docs/**/*', '!*/**/*.md', '!*.md'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..78ef55662 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Add label automatically" +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"