Skip to content

Conversation

@derekmisler
Copy link
Contributor

@derekmisler derekmisler commented Jan 14, 2026

🤖 Add AI-Powered PR Review Workflow

This PR introduces an automated PR review workflow that can be triggered via comment commands or manually through the GitHub Actions UI.

Features

Comment-triggered reviews: Simply comment /review on any PR to trigger an automated AI review
🎯 Manual dispatch: Run reviews on-demand from the GitHub Actions UI for any PR number
🔒 Secure: Uses minimal permissions (read-only content access) and proper secret handling
👀 Visual feedback: Adds emoji reactions (👀 → 🚀/😕) to show workflow progress

How It Works

  1. Trigger: Comment /review on a PR or manually trigger from Actions tab
  2. Validation: Workflow verifies the trigger is from a PR (not just any issue)
  3. Checkout: Fetches the PR branch and details
  4. Review: Runs the cagent PR reviewer agent using Claude AI
  5. Feedback: Adds reactions and posts review results

Usage

On a Pull Request:

/review

From GitHub UI:

  1. Go to Actions → "PR Review on Command"
  2. Click "Run workflow"
  3. Enter the PR number
  4. Click "Run workflow"

Security

  • ✅ Minimal permissions (contents: read, pull-requests: write, issues: write)
  • ✅ Actions pinned to specific versions/SHAs
  • ✅ Secrets properly handled (ANTHROPIC_API_KEY, GITHUB_TOKEN)
  • ✅ Only runs on explicit triggers (no automatic execution)
  • ✅ Uses official GitHub actions and verified Docker action

Technical Details

  • Workflow file: .github/workflows/pr-review-command.yml
  • Agent: agentcatalog/github-action-pr-reviewer:2.0.0
  • Required secrets: ANTHROPIC_API_KEY (already configured)
  • Runner: ubuntu-latest

Testing Plan

After merge, this can be tested by:

  1. Creating a new test PR
  2. Commenting /review on it
  3. Verifying the AI reviewer provides feedback

@derekmisler derekmisler self-assigned this Jan 14, 2026
@derekmisler
Copy link
Contributor Author

/review

@derekmisler derekmisler force-pushed the gh-workflows branch 2 times, most recently from 7a2bffe to d13076e Compare January 14, 2026 15:00
@derekmisler derekmisler changed the title cagent-action PR reviewer Add automated PR review workflow with /review command Jan 14, 2026
@derekmisler derekmisler marked this pull request as ready for review January 14, 2026 15:18
@derekmisler derekmisler requested a review from a team as a code owner January 14, 2026 15:18
@rumpl rumpl merged commit 61ea04c into docker:main Jan 14, 2026
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.

2 participants