diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..8fca6ed93 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +"backend": + - changed-files: + - any-glob-to-any-file: [photon-core/**, photon-server/**] + - all-globs-to-all-files: "!photon-server/src/main/resources/web/index.html" +"documentation": + - changed-files: + - any-glob-to-any-file: [docs/**, photon-docs/**] +"frontend": + - changed-files: + - any-glob-to-any-file: photon-client/** +"photonlib": + - changed-files: + - any-glob-to-any-file: photon-lib*/** +"website": + - changed-files: + - any-glob-to-any-file: website/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..526323cea --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + sync-labels: true