From ee8f6a760e5319f424dd30b63aaf543185c3aeb2 Mon Sep 17 00:00:00 2001 From: himself65 Date: Wed, 5 Apr 2023 20:14:11 -0500 Subject: [PATCH] ci: add labeler.yml --- .github/labeler.yml | 16 ++++++++++++++++ .github/workflows/auto-labeler.yml | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/auto-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..7f70a8fc46 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +docs: + - 'docs/**/*' + - '**/README.md' +tests: + - 'tests/**/*' + - '**/tests/**/*' + - '**/__tests__/**/*' + +mod:workspace: 'packages/workspace/**/*' +mod:i18n: 'packages/i18n/**/*' +mod:env: 'packages/env/**/*' +mod:hooks: 'packages/hooks/**/*' +mod:components: 'packages/components/**/*' + +app:web: 'apps/web/**/*' +app:electron: 'apps/electron/**/*' diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml new file mode 100644 index 0000000000..4aa28fe2fd --- /dev/null +++ b/.github/workflows/auto-labeler.yml @@ -0,0 +1,12 @@ +name: 'Pull Request Labeler' +on: + - pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4