From bd110aa507bdf3989bedd8de2ba97d86fbea14da Mon Sep 17 00:00:00 2001 From: Hug0-Drelon Date: Thu, 4 Jun 2026 14:35:48 +0200 Subject: [PATCH 1/2] Create labeler workflow. --- .github/workflows/add-pr-labels.yml | 23 ++++++++++++++++ .github/workflows/labeler-config.yml | 39 ++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/add-pr-labels.yml create mode 100644 .github/workflows/labeler-config.yml diff --git a/.github/workflows/add-pr-labels.yml b/.github/workflows/add-pr-labels.yml new file mode 100644 index 0000000000..ace22e8ccd --- /dev/null +++ b/.github/workflows/add-pr-labels.yml @@ -0,0 +1,23 @@ +name: Add Pull Request Labels + +on: + pull_request_target: + types: + - opened + +permissions: {} + +jobs: + add-pr-labels: + name: Add Plugin Labels + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + pull-requests: write + steps: + - name: Apply plugin labels from changed paths + uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0 + with: + configuration-path: .github/workflows/labeler-config.yml + sync-labels: true diff --git a/.github/workflows/labeler-config.yml b/.github/workflows/labeler-config.yml new file mode 100644 index 0000000000..366cdcaa46 --- /dev/null +++ b/.github/workflows/labeler-config.yml @@ -0,0 +1,39 @@ +'[Plugin] Enhanced Responsive Images': + - changed-files: + - any-glob-to-any-file: 'plugins/auto-sizes/**' + +'[Plugin] Embed Optimizer': + - changed-files: + - any-glob-to-any-file: 'plugins/embed-optimizer/**' + +'[Plugin] Image Placeholders': + - changed-files: + - any-glob-to-any-file: 'plugins/dominant-color-images/**' + +'[Plugin] Image Prioritizer': + - changed-files: + - any-glob-to-any-file: 'plugins/image-prioritizer/**' + +'[Plugin] Modern Image Formats': + - changed-files: + - any-glob-to-any-file: 'plugins/webp-uploads/**' + +'[Plugin] Optimization Detective': + - changed-files: + - any-glob-to-any-file: 'plugins/optimization-detective/**' + +'[Plugin] Performance Lab': + - changed-files: + - any-glob-to-any-file: 'plugins/performance-lab/**' + +'[Plugin] Speculative Loading': + - changed-files: + - any-glob-to-any-file: 'plugins/speculation-rules/**' + +'[Plugin] View Transitions': + - changed-files: + - any-glob-to-any-file: 'plugins/view-transitions/**' + +'[Plugin] Web Worker Offloading': + - changed-files: + - any-glob-to-any-file: 'plugins/web-worker-offloading/**' From f200d92acf6eca6ade21b549700b22bfc3a88fee Mon Sep 17 00:00:00 2001 From: Hug0-Drelon Date: Thu, 4 Jun 2026 14:53:14 +0200 Subject: [PATCH 2/2] Move labeler-config.yml. --- .github/{workflows => }/labeler-config.yml | 0 .github/workflows/add-pr-labels.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/{workflows => }/labeler-config.yml (100%) diff --git a/.github/workflows/labeler-config.yml b/.github/labeler-config.yml similarity index 100% rename from .github/workflows/labeler-config.yml rename to .github/labeler-config.yml diff --git a/.github/workflows/add-pr-labels.yml b/.github/workflows/add-pr-labels.yml index ace22e8ccd..ed27d682cb 100644 --- a/.github/workflows/add-pr-labels.yml +++ b/.github/workflows/add-pr-labels.yml @@ -19,5 +19,5 @@ jobs: - name: Apply plugin labels from changed paths uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0 with: - configuration-path: .github/workflows/labeler-config.yml + configuration-path: .github/labeler-config.yml sync-labels: true