copilot-instructions: repo-wide bot-node-id fallback for headless cold start - #295
Merged
Merged
Conversation
…d start (#294) On a freshly opened PR with no formal review and no issue comment yet, the only documented way to obtain the Copilot reviewer's bot node id was manual UI seeding, which defeats a headless/cron review loop. The reviewer's bot node id is the bot account's node id and is stable repo-wide (verified: identical across every PR in HomeAssistant-Config and ProjectTemplate). Document reading it from any prior Copilot review in the repo as the preferred cold-start fallback, before UI seeding. UI seeding drops to a true last resort: only a repo that has never had a Copilot review at all. Filed from ptr727/HomeAssistant-Config PR #7 headless run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Copilot PR review runbook to support fully headless “cold start” operation by documenting a repo-wide fallback method to obtain the Copilot reviewer bot node id before a new PR has any Copilot activity.
Changes:
- Adds guidance for cold-start bootstrapping of the Copilot reviewer bot node id using a repo-wide GraphQL query.
- Reorders/clarifies fallback options (repo-wide lookup, PR issue-comment author, UI seeding as last resort).
…rg/global claim Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 14, 2026
ptr727
added a commit
that referenced
this pull request
Jul 14, 2026
) Promotes the current `develop` snapshot to `main`. ## Changes - **copilot-instructions: repo-wide bot-node-id fallback for headless cold start (#295)** - documents reading the Copilot reviewer's bot node id from any prior Copilot review repo-wide (`pullRequests(first: 20, orderBy: { field: CREATED_AT, direction: DESC })`) as the preferred cold-start fallback, before UI seeding. Closes #294. Doc-only; `.github/copilot-instructions.md`. Already reviewed clean by Copilot and merged to `develop`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Closes #294.
Problem
The headless Copilot-review loop needs the Copilot reviewer's bot node id to drive round 1 via the
requestReviewsmutation. On a cold-start PR - freshly opened, auto-review-on-open not yet landed, so no formal review and no issue comment on the PR yet - the runbook's only documented source for that id was manual UI seeding, which defeats a headless/cron run. Surfaced running the loop fully headless onptr727/HomeAssistant-ConfigPR #7.Fix
The Copilot reviewer's bot node id is the reviewer bot account's node id and is stable repo-wide. Verified empirically - identical across every recent PR in two repos:
So document reading the id from any prior Copilot review anywhere in the repo as the preferred cold-start fallback (a
pullRequests(last:20)GraphQL query), positioned before UI seeding. UI seeding drops to a true last resort: only a repo that has never had a Copilot review at all, where no prior id exists to read.Doc-only change to
.github/copilot-instructions.md; therequestReviewsmutation itself is unchanged. markdownlint + cspell clean.🤖 Generated with Claude Code