github-integration
Capabilities
Review loop automation for GitHub / GitHub Enterprise.
| Tool | Role |
|---|---|
github_get_pr | Pull request metadata (title, body, reviewers, CI signals) |
github_get_pr_diff | Unified diff payload |
github_post_pr_review | Submit reviews (APPROVE / REQUEST_CHANGES / COMMENT) |
ask_user | Ambiguity / policy checkpoints |
Review states
| State | Meaning |
|---|---|
APPROVE | Ready to merge |
REQUEST_CHANGES | Block merge until addressed |
COMMENT | Notes without a verdict |
Typical flow
Security & compliance
- Credentials: PAT or GitHub App (preferred)
- Scopes: least privilege—only the
repo/pull_requestsurfaces you need - Audit: every review action hits the ledger
Invocation
Examples:
- "Sanity-check this PR"
- "Approve if clean, otherwise request changes"
- "Post every finding as inline comments"