Add copilot-setup-steps.yml for full agentic PR reviews#288
Add copilot-setup-steps.yml for full agentic PR reviews#288AlBurns-MSFT wants to merge 1 commit into
Conversation
Without this file, Copilot Code Review falls back to limited static analysis and shows a warning: 'Copilot was unable to run its full agentic suite in this review.' Adding a minimal setup that checks out the repo gives Copilot the context needed for full reviews. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a .github/copilot-setup-steps.yml file intended to enable GitHub Copilot Code Review’s full agentic runner-based analysis by providing minimal environment setup steps.
Changes:
- Introduces a Copilot setup steps configuration file under
.github/. - Adds a single checkout step to provide full repository context to the agentic reviewer.
| name: "Copilot Setup Steps" | ||
| on: workflow_dispatch | ||
|
|
||
| jobs: | ||
| copilot-setup-steps: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 |
| copilot-setup-steps: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 |
|
Regarding the two review comments: 1. Format concern ("not a GitHub Actions workflow") — This is incorrect. The official GitHub docs confirm that 2. SHA pinning for actions/checkout — Fair hardening suggestion but low-risk here: this step only runs in the Copilot review sandbox (not CI), and |
Problem
Recent PRs show the warning:
This happens because the repo lacks a
.github/copilot-setup-steps.ymlfile. Without it, Copilot Code Review cannot spin up a runner environment and falls back to limited static diff analysis.Fix
Add a minimal
copilot-setup-steps.ymlthat checks out the repo. Since this is a docs-only repo (Markdown TSGs), no build tools or dependencies are needed — just a checkout gives Copilot full repo context for agentic reviews (cross-file references, link validation, structural analysis).References