diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..98b8057715 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,22 @@ +Documentation: + - changed-files: + - any-glob-to-any-file: + - 'docs/*' + - '**/*.md' + +feature: + - head-branch: [ '^feature', 'feature' ] + + +bug: + - title: 'bug' + + +frontend: + - changed-files: + - any-glob-to-any-file: '**/*.ts' + + +BE: + - changed-files: + - any-glob-to-any-file: '**/*.java' diff --git a/.github/workflows/pull-request_labeler.yml b/.github/workflows/pull-request_labeler.yml new file mode 100644 index 0000000000..ef32f78e25 --- /dev/null +++ b/.github/workflows/pull-request_labeler.yml @@ -0,0 +1,19 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: [ opened, synchronize ] + workflow_dispatch: + + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Pull Request Labeler Action + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml