Skip to content

ci: add PR event workflow - #3087

Merged
Jesse Hills (jesserockz) merged 1 commit into
mainfrom
jesserockz-2026-983
Nov 19, 2026
Merged

Jesse Hills (jesserockz) merged 1 commit into
mainfrom
jesserockz-2026-983

Conversation

@jesserockz

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

Copy link
Copy Markdown
Member

What does this implement/fix?

Adds .github/workflows/pr-event.yml, a pull_request workflow that carries no data and has no permissions. The same file, byte for byte, goes into every repository that still uses pull_request_target.

GitHub blocks pull_request_target by default in public repositories from 2 December 2026. Workflows that need to act on pull requests from forks can listen for this one through workflow_run instead, and read the pull request from the API with their own token. Nothing listens for it yet, so this changes no behaviour on its own.

Part of esphome/backlog#211.

Related pull requests (the same file in each repository):

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.

A no-data pull_request workflow that workflows acting on fork pull requests can listen for through workflow_run, as GitHub blocks pull_request_target by default from 2 December 2026.

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.

🟢 Approval recommended

The changes add the permissionless pull-request event bridge and corresponding lock entry without altering current repository behavior, with no active review issues remaining.

No open issues 🎉

What changed in this PR

Adds a permissionless pull_request event bridge for future workflow_run-based replacements of pull_request_target, without changing current repository behavior.

Changes:

  • Added .github/workflows/pr-event.yml with selected pull-request activity triggers, no permissions, and a no-op job.
  • Registered the workflow in .github/workflows/actions.lock.
  • The selected trigger list is narrower than the existing pull_request_target activity coverage and may omit events needed by future migrations.
File Description
.github/​workflows/​pr-event.yml Adds a permissionless no-op pull-request event workflow with selected activity triggers.
.github/​workflows/​actions.lock Records the new workflow as containing no external actions requiring locking.

Review effort: Lite (adaptive)

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing jesserockz-2026-983 (02c1411) with main (ac73b09)2

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. ↩

  2. No successful run was found on main (637ab80) during the generation of this report, so ac73b09 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.77%. Comparing base (ac73b09) to head (02c1411).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3087   +/-   ##
=======================================
  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.

@jesserockz
Jesse Hills (jesserockz) merged commit 1a57653 into main Nov 19, 2026
35 checks passed
@jesserockz
Jesse Hills (jesserockz) deleted the jesserockz-2026-983 branch November 19, 2026 19:04
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 21, 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.

2 participants