From 2355f66b5fe8c7ab17de8541fa5640c1c174f2f6 Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:06:13 +0800 Subject: [PATCH 1/5] 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 From 3252ebc244efd423eb69cdee632ed22844b167af Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:09:22 +0800 Subject: [PATCH 2/5] fix(ci): update pr-labeler.yml --- .github/workflows/pr-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 47827cad04..8dab0babde 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -16,5 +16,5 @@ jobs: steps: - uses: TimonVS/pr-labeler-action@v4 with: - repo-token: ${{ secrets.GIT_ACTION }} + repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/pr-labeler.yml \ No newline at end of file From a92c503b742de60739ffac480e7f76eec7a5a5ff Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:15:26 +0800 Subject: [PATCH 3/5] fix(ci): update pr-labeler.yml --- .github/pr-labeler.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index 7682993541..df0d4773e8 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,5 +1,5 @@ -pr-feat: '/^(feat|style)/' -pr-fix: '^fix' -pr-perf: '^perf' -pr-docs: '^docs' -pr-test: '^test' \ No newline at end of file +'pr/feat': '^(feat|style)' +'pr/fix': '^fix' +'pr/perf': '^perf' +'pr/docs': '^docs' +'pr/test': '^test' \ No newline at end of file From afe52d6fbef3d66159a5ab74ffd1da7f1491f5aa Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:22:56 +0800 Subject: [PATCH 4/5] fix(ci): update pr-labeler.yml --- .github/pr-labeler.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index df0d4773e8..1ab7d7c000 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,5 +1,10 @@ -'pr/feat': '^(feat|style)' -'pr/fix': '^fix' -'pr/perf': '^perf' -'pr/docs': '^docs' -'pr/test': '^test' \ No newline at end of file +"pr/feat": + - "/^(feat|style)/" +"pr/fix": + - "/^fix/" +"pr/perf": + - "/^perf/" +"pr/docs": + - "/^docs/" +"pr/test": + - "/^test/" \ No newline at end of file From d24be0684217d37074ceaafc9626cca8fd09da8d Mon Sep 17 00:00:00 2001 From: eiinu Date: Fri, 26 Jan 2024 15:24:29 +0800 Subject: [PATCH 5/5] fix(ci): update pr-labeler.yml --- .github/workflows/pr-labeler.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 8dab0babde..068cf23b72 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -8,7 +8,6 @@ permissions: jobs: pr-labeler: - if: github.repository == 'jdf2e/nutui' permissions: contents: read pull-requests: write