Skill 94 · Copilot PR Autopilot
Subchapter 94.3
references/03-list-threads.mdMarkdown2 KBView on GitHub
Scripts
LibPrNumber.Table of rows, one per open thread:
{ thread_id, file, line, author, author_class, severity, summary }Where author_class ∈ copilot | human-or-bot, derived from the
raw author.login (see Gotchas).
Run the listing script:
pwsh ./scripts/03-list-open-threads.ps1 -PrNumber <n>This returns every unresolved review thread from all reviewers
(Copilot, humans, github-advanced-security, other bots). The script
emits Path as <file>:<line> when the comment is anchored to a
specific line (e.g. src/foo.js:42); when the comment has no line
anchor (file-level / PR-level comments), Path is just <file> with
no :<line> suffix. Callers should split on the last : only when
the suffix parses as an integer, and treat Path as the file alone
otherwise. For each row, classify the author:
copilot-pull-request-reviewer or
copilot-pull-request-reviewer[bot] → author_class: copilotauthor_class: human-or-botPass the classified table to step 4 — the triage rubric depends on it.
[bot] suffix appears on some surfaces. Match BOTH
copilot-pull-request-reviewer AND
copilot-pull-request-reviewer[bot] — they’re the same actor.escalate-to-user in
step 4. Classification here just flags them; triage applies the
policy. See 04-triage.md.