feat: add automated PR review agent that summarizes changes as a comment#1
Merged
Conversation
Adds .github/workflows/pr-review-agent.yml — a GitHub Actions workflow that fires on every pull_request (opened / synchronize / reopened), fetches the PR diff via the GitHub API, calls the GitHub Models (gpt-4o-mini) endpoint for an AI-generated summary, and posts the result as a PR comment. A structured fallback comment is posted when the AI endpoint is unavailable. Previous bot summary comments are deleted first so the thread stays clean.
Copilot
AI
changed the title
[WIP] Add PR review agent to summarize changes
feat: add automated PR review agent that summarizes changes as a comment
Jun 16, 2026
mhreficode
marked this pull request as ready for review
June 16, 2026 03:39
🤖 PR Review AgentSummaryThis PR — feat: add automated PR review agent that summarizes changes as a comment — modifies 1 file(s). Changes
Potential concernsAI summarization was unavailable; please review manually. Generated automatically by the PR Review Agent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No automated PR summarization existed — reviewers had to manually parse diffs to understand scope and risk.
What's added
.github/workflows/pr-review-agent.yml— GitHub Actions workflow that fires on every PR open/update and posts an AI-generated summary comment.Behavior
gpt-4o-mini)Permissions
Token note
GITHUB_TOKENworks for GitHub Models on public repos. For private repos, a PAT withmodels:readscope stored as a repository secret is required — swap it into theenv.GITHUB_TOKENfield.Original prompt
Created from VS Code.