Skip to content

Promote develop to main: repo-wide bot-node-id cold-start fallback - #296

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jul 14, 2026
Merged

Promote develop to main: repo-wide bot-node-id cold-start fallback#296
ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Promotes the current develop snapshot to main.

Changes

Doc-only; .github/copilot-instructions.md. Already reviewed clean by Copilot and merged to develop.

🤖 Generated with Claude Code

…d start (#295)

Closes #294.

## Problem

The headless Copilot-review loop needs the Copilot reviewer's bot node
id to drive round 1 via the `requestReviews` mutation. 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 on
`ptr727/HomeAssistant-Config` PR #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:

```
HomeAssistant-Config -> BOT_kgDOCnlnWA
ProjectTemplate      -> BOT_kgDOCnlnWA
```

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`; the
`requestReviews` mutation itself is unchanged. markdownlint + cspell
clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 14, 2026 03:17

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.

Pull request overview

This PR promotes the current develop snapshot to main, carrying forward documentation updates to the GitHub Copilot headless review runbook to better support cold-start scenarios where the Copilot reviewer bot node id is not yet available on the current PR.

Changes:

  • Document a repo-wide fallback to discover the Copilot reviewer bot node id from recent PR reviews, to avoid UI seeding on cold-start PRs.
  • Add a guardrail to stop the script early when $BOT_ID is empty to avoid calling requestReviews with an invalid id.

Comment thread .github/copilot-instructions.md
@ptr727
ptr727 merged commit 88c9550 into main Jul 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copilot-instructions: document headless bot-node-id bootstrap (avoid UI-seeding fallback on cold start)

2 participants