-
Notifications
You must be signed in to change notification settings - Fork 152
Create labeler workflow. #2513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Create labeler workflow. #2513
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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/**' |
| 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 | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||
|
|
||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Suggested change
|
||||||||||||
| 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 | ||||||||||||
Uh oh!
There was an error while loading. Please reload this page.