Skip to content

Add AI PR review workflow#117

Open
jeffsheltren wants to merge 1 commit into
mainfrom
feat-add-ai-pr-reviews
Open

Add AI PR review workflow#117
jeffsheltren wants to merge 1 commit into
mainfrom
feat-add-ai-pr-reviews

Conversation

@jeffsheltren
Copy link
Copy Markdown
Member

@jeffsheltren jeffsheltren commented May 29, 2026

Summary

Adds a GitHub Actions workflow that runs an automated AI code review on
pull requests using the tag1consulting/ai-pr-review container action.

The workflow triggers when a PR is opened, updated (synchronize), or
reopened, and posts review feedback as PR comments.

Details

  • Checks out the full history (fetch-depth: 0) so the action can diff
    against the base branch.
  • Grants contents: read and pull-requests: write so the action can
    read the diff and post review comments.
  • Uses the ANTHROPIC_API_KEY repository secret (already configured) and
    the built-in GITHUB_TOKEN for posting comments.

@github-actions
Copy link
Copy Markdown

Summary

Adds a GitHub Actions workflow that triggers an AI-powered code review via the tag1consulting/ai-pr-review container action whenever a pull request is opened, updated, or reopened. The workflow is scoped with minimal permissions and passes the Anthropic API key and GitHub token as secrets.

Type: config
Effort: 1/5 — Single 23-line YAML file adding a new CI workflow with no logic changes.

Walkthrough

File Change Summary
.github/workflows/ai-review.yml Added New workflow that runs AI PR review on pull request events

AI Review Summary — generated by ai-pr-review

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review: Approved

No findings above the confidence threshold. The changes look good.

Token usage by agent
Agent Model Input Output Cache Write Cache Read Total Est. Cost
pr-summarizer Sonnet 4.6 580 153 1916 0 2649 $0.0112
code-reviewer Sonnet 4.6 3523 621 1341 0 5485 $0.0249
Total 4103 774 3257 0 8134 $0.0361

Prices are public list rates and do not reflect discounts, commitments, or proxy markups.


AI Review — generated by ai-pr-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant