From 8c63cf0adb3b622e7d97a0ba9f3667fe09a7a0ca Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 15 May 2025 23:15:32 -0700 Subject: [PATCH] feat: add labeler --- .github/labeler.yml | 41 ++++++++++++++++++++++++++++++++++++ .github/workflows/labels.yml | 17 +++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labels.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..2b0a8ad --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,41 @@ +"component:display": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/display/**/* + - lib/phantom/display.zig + +"component:fonts": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/fonts/**/* + - lib/phantom/fonts.zig + +"component:gpu": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/gpu/**/* + - lib/phantom/gpu.zig + +"component:graphics": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/graphics/**/* + - lib/phantom/graphics.zig + +"component:scene": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/scene/**/* + - lib/phantom/scene.zig + +"component:widgets": + - any: + - changed-files: + - any-glob-to-any-file: + - lib/phantom/widgets/**/* + - lib/phantom/widgets.zig diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 0000000..a921703 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,17 @@ +name: "Label PR" + +on: + pull_request_target: + types: [edited, opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + labels: + name: label-pr + runs-on: ubuntu-24.04-arm + if: "github.repository_owner == 'PhantomUIx'" + steps: + - uses: actions/labeler@v5