Skip to content

Call shared request-copilot-review workflow - #3089

Merged
Jesse Hills (jesserockz) merged 2 commits into
mainfrom
jesserockz-2026-993
Nov 24, 2026
Merged

Jesse Hills (jesserockz) merged 2 commits into
mainfrom
jesserockz-2026-993

Conversation

@jesserockz

@jesserockz Jesse Hills (jesserockz) commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What does this implement/fix?

Replaces the inline Copilot review job and .github/scripts/request-copilot-review.cjs with a call to the shared reusable workflow in esphome/workflows (2026.11.2). The trigger moves off pull_request_target to the PR event doorbell (workflow_run), an hourly schedule and workflow_dispatch. actions.lock is regenerated.

Related issue or feature (if applicable):

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — docs
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Frontend coordination

  • No frontend change needed
  • Companion frontend PR: esphome/device-builder-frontend#

Checklist

  • The code change is tested and works locally.
  • Pre-commit hooks pass (ruff, codespell, yaml/json/python checks).
  • Tests have been added or updated under tests/ where applicable.
  • components.index.json / definitions/components/*.json have not been hand-edited (regenerate via script/sync_components.py if a sync is needed).
  • Architecture-level changes are reflected in docs/ARCHITECTURE.md and/or docs/API.md.

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.
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 03:02
@jesserockz Jesse Hills (jesserockz) added the ci Continuous integration / build / release tooling label Nov 20, 2026
@codspeed

codspeed Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing jesserockz-2026-993 (93f7daf) with main (c0d0110)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.77%. Comparing base (1a57653) to head (93f7daf).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3089   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files         300      300           
  Lines       26564    26564           
=======================================
  Hits        26503    26503           
  Misses         61       61           
Flag Coverage Δ
py3.12 99.73% <ø> (ø)
py3.14 99.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

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.

🟡 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 event completion, 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
@jesserockz
Jesse Hills (jesserockz) marked this pull request as draft November 20, 2026 03:29

Copilot AI left a comment

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.

🟡 Changes recommended

The PR description lists 2026.11.1 and needs updating to 2026.11.2 to match the shared workflow’s pinned SHA and comment.

2 open issues

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@6e7c96fd2dbf04dda9061c35bfdd9754adc57bbb # 2026.11.2
@jesserockz
Jesse Hills (jesserockz) merged commit 391707a into main Nov 24, 2026
33 checks passed
@jesserockz
Jesse Hills (jesserockz) deleted the jesserockz-2026-993 branch November 24, 2026 03:22
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ci Continuous integration / build / release tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move request-copilot-review.yml off pull_request_target

2 participants