diff --git a/.github/labeler-config.yml b/.github/labeler-config.yml new file mode 100644 index 0000000000..366cdcaa46 --- /dev/null +++ b/.github/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/**' diff --git a/.github/workflows/add-pr-labels.yml b/.github/workflows/add-pr-labels.yml new file mode 100644 index 0000000000..ed27d682cb --- /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/labeler-config.yml + sync-labels: true