GitHub Copilot Code Review analyzes every pull request diff and posts inline comments focusing on bugs, security issues, and logic errors. It runs as a built-in GitHub feature — no custom GitHub Action required.
How to Enable
Go to your repository or organization Settings → Copilot → Code Review
Enable Copilot Code Review for pull requests
Optionally configure a copilot-review-config.yml in .github/ to customize review behavior
How It Works
A PR is opened or updated
Copilot automatically analyzes the diff
Inline comments are posted as a review on relevant lines
A summary comment provides an overall assessment
Requesting Review Manually
You can also request Copilot as a reviewer on any PR:
Open the PR → Reviewers → add Copilot
Or use GitHub CLI:
gh pr edit <number> --add-reviewer copilot
Optional: Trigger Review via Workflow
To ensure Copilot review is always requested on new PRs automatically:
Copilot Code Review works best with clear PR descriptions and focused diffs
It catches common bugs, security anti-patterns, and logic errors
For high-risk changes, combine with human review — Copilot supplements but does not replace reviewers
Raw content
Copy this into your project — e.g. .instructions.md, .agent.md, or SKILL.md
## Overview
GitHub Copilot Code Review analyzes every pull request diff and posts inline comments focusing on bugs, security issues, and logic errors. It runs as a built-in GitHub feature — no custom GitHub Action required.
## How to Enable
1. Go to your repository or organization **Settings → Copilot → Code Review**
2. Enable **Copilot Code Review** for pull requests
3. Optionally configure a `copilot-review-config.yml` in `.github/` to customize review behavior
## How It Works
1. A PR is opened or updated
2. Copilot automatically analyzes the diff
3. Inline comments are posted as a review on relevant lines
4. A summary comment provides an overall assessment
## Requesting Review Manually
You can also request Copilot as a reviewer on any PR:
1. Open the PR → **Reviewers** → add **Copilot**
2. Or use GitHub CLI:
```bash
gh pr edit <number> --add-reviewer copilot
```
## Optional: Trigger Review via Workflow
To ensure Copilot review is always requested on new PRs automatically:
```yaml
name: Request Copilot Review
on:
pull_request:
types: [opened, synchronize]
jobs:
request-review:
runs-on: ubuntu-latest
steps:
- name: Add Copilot as reviewer
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr edit ${{ github.event.pull_request.number }} --add-reviewer copilot --repo ${{ github.repository }}
```
## Tips
- Copilot Code Review works best with clear PR descriptions and focused diffs
- It catches common bugs, security anti-patterns, and logic errors
- For high-risk changes, combine with human review — Copilot supplements but does not replace reviewers