Repository navigation
Add a shared workflow to request a Copilot review - #202
Merged
Merged
Conversation
Repositories can call it from the PR event doorbell instead of running their own pull_request_target copy, which GitHub blocks by default from 2 December 2026.
1 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
request-copilot-review.yml, a reusable workflow that requests a Copilot review as esphome-review-bot, and its script with tests. Several repositories run their own copy of this onpull_request_target, which GitHub blocks by default from 2 December 2026 (esphome/backlog#211).A caller runs it from
workflow_runof thePR eventdoorbell, an hourlyschedule(for doorbell runs held for approval) andworkflow_dispatch. Thefind-prsjob matches open pull requests by head repository and head commit, since a fork's run does not name its pull request. Therequestjob reads each pull request fresh and requests a review once per pull request, or after each push withevery-push: true. Skips are decided from reads only, so the hourly sweep writes nothing unless a request is needed.Inputs:
pr-number(for dispatch),base-branch(empty means any) andevery-push. Secret:COPILOT_REVIEW_TOKEN.A caller: