From 2355f66b5fe8c7ab17de8541fa5640c1c174f2f6 Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:06:13 +0800 Subject: [PATCH] feat(ci): add pr-labeler.yml --- .github/pr-labeler.yml | 5 +++++ .github/workflows/pr-labeler.yml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/pr-labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000000..7682993541 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,5 @@ +pr-feat: '/^(feat|style)/' +pr-fix: '^fix' +pr-perf: '^perf' +pr-docs: '^docs' +pr-test: '^test' \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000000..47827cad04 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,20 @@ +name: PR Labeler +on: + pull_request: + types: [opened] + +permissions: + contents: read + +jobs: + pr-labeler: + if: github.repository == 'jdf2e/nutui' + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v4 + with: + repo-token: ${{ secrets.GIT_ACTION }} + configuration-path: .github/pr-labeler.yml \ No newline at end of file