diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..44971015c --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,45 @@ +relinker: + - changed-files: + - any-glob-to-any-file: 'core/relinker/**' + +shader: + - changed-files: + - any-glob-to-any-file: 'core/shader/**' + +agc: + - changed-files: + - any-glob-to-any-file: 'core/libs/prx/libSceAgc*/**' + +libc: + - changed-files: + - any-glob-to-any-file: 'core/libs/prx/libc/**' + +libkernel: + - changed-files: + - any-glob-to-any-file: 'core/libs/prx/libkernel/**' + +prx: + - changed-files: + - all-globs-to-any-file: + - 'core/libs/prx/**' + - '!core/libs/prx/libSceAgc*/**' + - '!core/libs/prx/libc/**' + - '!core/libs/prx/libkernel/**' + +build: + - changed-files: + - any-glob-to-any-file: + - '**/CMakeLists.txt' + - '**/*.cmake' + - '.gitmodules' + - '3rdparty/**' + +docs: + - changed-files: + - any-glob-to-any-file: + - '**/*.md' + - 'docs/**' + +ci: + - changed-files: + - any-glob-to-any-file: '.github/**' diff --git a/.github/workflows/area-labels.yml b/.github/workflows/area-labels.yml new file mode 100644 index 000000000..fb0dbe9b8 --- /dev/null +++ b/.github/workflows/area-labels.yml @@ -0,0 +1,29 @@ +name: Area labels + +on: + schedule: + - cron: '30 * * * *' + workflow_dispatch: + +permissions: {} + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - id: prs + env: + GH_TOKEN: ${{ github.token }} + run: | + { + echo 'numbers<> "$GITHUB_OUTPUT" + - if: steps.prs.outputs.numbers != '' + uses: actions/labeler@v7 + with: + pr-number: ${{ steps.prs.outputs.numbers }}