Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/labeler-config.yml
Comment thread
mukeshpanchal27 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -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/**'
23 changes: 23 additions & 0 deletions .github/workflows/add-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add Pull Request Labels

on:
pull_request_target:
types:
- opened

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the workflow only runs on pull_request_target opened, so if a contributor pushes more commits, removes files, or changes plugin scope, labels will not update.

Suggested change
- opened
types:
- opened
- synchronize


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no branch filter, so this will run for PRs to any base branch.
We can limit the scope here ? @westonruter Any opinions ?

Suggested change
branches:
- trunk
- 'release/**'
- 'feature/**'

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
Loading