diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..48dd293 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +# Add 'Frontend' label to any change within the 'frontend' folder +Frontend: + - changed-files: + - any-glob-to-any-file: "frontend/**" + +# Add 'backend' label to any change within the 'server' folder +backend: + - changed-files: + - any-glob-to-any-file: "server/**" + +# Add 'documentation' label to any markdown files +documentation: + - changed-files: + - any-glob-to-any-file: "**/*.md" diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..995ef21 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,16 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: [opened, synchronize, reopened] + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6.1.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true