Improves the PR reviewer agent with Go-specific pattern detection, a multi-agent architecture, and dynamic feedback learning #99
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
| name: PR Review on Command | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| run-review: | |
| if: github.event.issue.pull_request && contains(github.event.comment.body, '/review') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run PR Reviewer Agent | |
| uses: docker/cagent-action@1f7ec0445e138a587639fc9c046076e22d184349 | |
| with: | |
| cagent-version: "v1.19.1" | |
| agent: ${{ github.workspace }}/.github/workflows/agents/pr-review.yaml | |
| prompt: "Please review this GitHub Pull Request: https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}" | |
| mcp-gateway: true | |
| anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |