From ab3272ebe227d9000e38cedbb7996abb2716ed82 Mon Sep 17 00:00:00 2001 From: JeanExtreme002 Date: Thu, 4 Jun 2026 23:57:58 -0300 Subject: [PATCH 1/2] ci: auto-label PRs by changed files --- .github/labeler.yml | 38 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 27 +++++++++++++++++++++++++ 2 files changed, 65 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 0000000..d2f2147 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,38 @@ +# Path-based labels applied to PRs by .github/workflows/labeler.yml. +# Uses actions/labeler@v5 match rules. + +docs: + - changed-files: + - any-glob-to-any-file: + - "docs/**" + +app: + - changed-files: + - any-glob-to-any-file: + - "PyMemoryEditor/app/**" + +linux: + - changed-files: + - any-glob-to-any-file: + - "PyMemoryEditor/linux/**" + +win32: + - changed-files: + - any-glob-to-any-file: + - "PyMemoryEditor/win32/**" + +macos: + - changed-files: + - any-glob-to-any-file: + - "PyMemoryEditor/macos/**" + +# Any change inside the PyMemoryEditor package. +lib: + - changed-files: + - any-glob-to-any-file: + - "PyMemoryEditor/**" + +tests: + - changed-files: + - any-glob-to-any-file: + - "tests/**" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..3f89597 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,27 @@ +name: Labeler + +on: + pull_request_target: + types: + - opened + - synchronize + - reopened + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: write + +jobs: + label: + name: Label PR by changed files + runs-on: ubuntu-latest + steps: + - name: Apply labels + uses: actions/labeler@v5 + with: + configuration-path: .github/labeler.yml + sync-labels: true From 246b2b06e657fb72a2ef9ac0f54e5eb9922cdb58 Mon Sep 17 00:00:00 2001 From: JeanExtreme002 Date: Fri, 5 Jun 2026 00:05:10 -0300 Subject: [PATCH 2/2] ci: match renamed macOS label in labeler config --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index d2f2147..d8fcd80 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -21,7 +21,7 @@ win32: - any-glob-to-any-file: - "PyMemoryEditor/win32/**" -macos: +macOS: - changed-files: - any-glob-to-any-file: - "PyMemoryEditor/macos/**"