Repository navigation
Call shared request-copilot-review workflow - #3089
Conversation
Replace the inline Copilot review job and script with a call to the reusable workflow in esphome/workflows, and move the trigger to the PR event doorbell.
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3089 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 300 300
Lines 26564 26564
=======================================
Hits 26503 26503
Misses 61 61
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The workflow suppresses fresh Copilot reviews when PRs with new commits are reopened or marked ready because it deduplicates against any prior review request rather than the current reopen/ready cycle.
1 open issue
What changed in this PR
Moves the repository’s Copilot review automation to a pinned shared ESPHome workflow. This addresses #3086 by replacing pull_request_target with safer triggers for fork pull requests.
Changes:
- Calls the shared workflow at version 2026.11.1, forwarding the review token with read-only workflow permissions.
- Adds
PR eventcompletion, hourly scheduling, and manual dispatch triggers. - Removes the local review script and regenerates
actions.lock.
| File | Description |
|---|---|
.github/workflows/request-copilot-review.yml |
Replaces the inline job with the shared workflow and new triggers. |
.github/workflows/actions.lock |
Removes action entries for the deleted inline steps. |
.github/scripts/request-copilot-review.cjs |
Deletes review-request logic now provided by the shared workflow. |
Review effort: Max (adaptive)
| github.event.pull_request.user.type != 'Bot' | ||
| && !github.event.pull_request.draft | ||
| # yamllint disable-line rule:line-length | ||
| uses: esphome/workflows/.github/workflows/request-copilot-review.yml@7f0b0f230ba1b9fa1361e699b3a2043c92f0d3f3 # 2026.11.1 |
| github.event.pull_request.user.type != 'Bot' | ||
| && !github.event.pull_request.draft | ||
| # yamllint disable-line rule:line-length | ||
| uses: esphome/workflows/.github/workflows/request-copilot-review.yml@6e7c96fd2dbf04dda9061c35bfdd9754adc57bbb # 2026.11.2 |


What does this implement/fix?
Replaces the inline Copilot review job and
.github/scripts/request-copilot-review.cjswith a call to the shared reusable workflow inesphome/workflows(2026.11.2). The trigger moves offpull_request_targetto thePR eventdoorbell (workflow_run), an hourlyscheduleandworkflow_dispatch.actions.lockis regenerated.Related issue or feature (if applicable):
request-copilot-review.ymloffpull_request_target#3086Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.