From c48efe1bd91c6b7fd44cb98c555e0d97fc316bb4 Mon Sep 17 00:00:00 2001 From: reggie Date: Wed, 2 Oct 2024 22:11:46 -0500 Subject: [PATCH] Re-add PR labeling/triage workflow --- .github/labeler.yml | 35 +++++++++++++++++++++++++++++++++ .github/workflows/pr_triage.yml | 27 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr_triage.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..cd7650a9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,35 @@ +audio: +- changed-files: + - any-glob-to-any-file: 'src/Ryujinx.Audio*/**' + +cpu: +- changed-files: + - any-glob-to-any-file: ['src/ARMeilleure/**', 'src/Ryujinx.Cpu/**', 'src/Ryujinx.Memory/**'] + +gpu: +- changed-files: + - any-glob-to-any-file: ['src/Ryujinx.Graphics.*/**', 'src/Spv.Generator/**', 'src/Ryujinx.ShaderTools/**'] + +'graphics-backend:opengl': +- changed-files: + - any-glob-to-any-file: 'src/Ryujinx.Graphics.OpenGL/**' + +'graphics-backend:vulkan': +- changed-files: + - any-glob-to-any-file: ['src/Ryujinx.Graphics.Vulkan/**', 'src/Spv.Generator/**'] + +gui: +- changed-files: + - any-glob-to-any-file: ['src/Ryujinx/**', 'src/Ryujinx.UI.Common/**', 'src/Ryujinx.UI.LocaleGenerator/**', 'src/Ryujinx.Gtk3/**'] + +horizon: +- changed-files: + - any-glob-to-any-file: ['src/Ryujinx.HLE/**', 'src/Ryujinx.Horizon/**'] + +kernel: +- changed-files: + - any-glob-to-any-file: 'src/Ryujinx.HLE/HOS/Kernel/**' + +infra: +- changed-files: + - any-glob-to-any-file: ['.github/**', 'distribution/**', 'Directory.Packages.props'] diff --git a/.github/workflows/pr_triage.yml b/.github/workflows/pr_triage.yml new file mode 100644 index 00000000..1ac02906 --- /dev/null +++ b/.github/workflows/pr_triage.yml @@ -0,0 +1,27 @@ +name: "Pull Request Triage" +on: + pull_request_target: + types: [opened, ready_for_review] + +jobs: + triage: + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - name: Fetch labeler.yml + uses: actions/checkout@v4 + with: + # Ensure we pin the source origin as pull_request_target run under forks. + fetch-depth: 0 + repository: ryujinx-mirror/ryujinx + ref: mirror/master + + - name: Update labels based on changes in PR + uses: actions/labeler@v5 + with: + sync-labels: true + dot: true