From d7a5825282104e0eb32ef432c8b3f4f8750be4a3 Mon Sep 17 00:00:00 2001 From: nishinji <107111782+nishinji@users.noreply.github.com> Date: Sat, 16 Dec 2023 22:20:15 +0900 Subject: [PATCH] bot labeler --- .github/labeler.yml | 156 ++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 17 ++++ 2 files changed, 173 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..7c001b40c5 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,156 @@ +# Documentation - https://github.com/actions/labeler + +# General Labels +audio: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/audio/*' + - 'vita3k/audio/**/*' + - '**aac.cpp' + - '**atrac9.cpp' + - '**mp3.cpp' + - not: + - 'external/*' + - 'external/**/*' +build: + - changed-files: + - any-glob-to-any-file: + - '.github/*' + - '.github/**/*' + - '*.sln' + - '**/*.sln' + - '*.vcxproj*' + - '**/*.vcxproj*' + - 'cmake/*' + - 'CMakeLists.txt' + - 'build.sh' + - not: + - 'external/*' + - 'external/**/*' +cpu: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/cpu/*' + - 'vita3k/cpu/**/*' +debug: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/gdbstub/*' + - 'vita3k/gdbstub/**/*' + - 'tracy.cpp' +document: + - changed-files: + - any-glob-to-any-file: + - '*.md' + - '**/*.md' + - '*.png' + - '**/*.png' + - '*.pdf' + - '**/*.pdf' + - not: + - 'external/*' + - 'external/**/*' +external: + - changed-files: + - any-glob-to-any-file: + - 'external/*' + - 'external/**/*' +gxm: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/gxm/*' + - 'vita3k/gxm/**/*' +input: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/input/*' + - 'vita3k/input/**/*' +io: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/io/*' + - 'vita3k/io/**/*' +kernel: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/kernel/*' + - 'vita3k/kernel/**/*' +lle: + - changed-files: + - any-glob-to-any-file: + # - 'vita3k/lle/*' + # - 'vita3k/lle/**/*' +memory: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/mem/*' + - 'vita3k/mem/**/*' +modules: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/module/*' + - 'vita3k/module/**/*' + - 'vita3k/modules/*' + - 'vita3k/modules/**/*' +net: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/net/*' + - 'vita3k/net/**/*' + - 'vita3k/http/*' + - 'vita3k/http/**/*' +opengl: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/renderer/**/opengl/*' + - 'vita3k/renderer/**/opengl/**/*' +renderer: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/renderer/*' + - 'vita3k/renderer/**/*' +shaders: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/shaders/*' + - 'vita3k/shaders/**/*' + - 'vita3k/shaders-builtin/*' + - 'vita3k/shaders-builtin/**/*' +threads: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/threads/*' + - 'vita3k/threads/**/*' +vulkan: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/renderer/**/vulkan/*' + - 'vita3k/renderer/**/vulkan/**/*' + - 'vita3k/vkutil/*' + - 'vita3k/vkutil/**/*' + +# OS labels +windows: + - changed-files: + - any-glob-to-any-file: + - 'gen-windows.bat' +mac: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/script/update-macos.sh' +linux: + - changed-files: + - any-glob-to-any-file: + - 'appimage/*' + +# GUI labels +gui: + - changed-files: + - any-glob-to-any-file: + - 'vita3k/gui/*' + - 'vita3k/gui/**/*' +lang: + - changed-files: + - any-glob-to-any-file: + - 'lang/*' + - 'lang/**/*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..2a357a201d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" + +on: + - pull_request_target + +jobs: + labeler: + # if: github.repository == 'Vita3K/Vita3K' + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5.0.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true