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..8dab0babde --- /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.GITHUB_TOKEN }} + configuration-path: .github/pr-labeler.yml \ No newline at end of file