From b91b7103b257ac2832359ddf1643e50335e8c142 Mon Sep 17 00:00:00 2001 From: Natalie Kramer Date: Mon, 27 Jul 2026 14:23:43 -0500 Subject: [PATCH] chore: Add AI PR Review workflow --- .github/workflows/ai-pr-review.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ai-pr-review.yml diff --git a/.github/workflows/ai-pr-review.yml b/.github/workflows/ai-pr-review.yml new file mode 100644 index 0000000..459e1a3 --- /dev/null +++ b/.github/workflows/ai-pr-review.yml @@ -0,0 +1,29 @@ +# This workflow runs a comprehensive AI-powered PR review using the reusable +# workflow from teamsnap/github-workflows. It triggers when someone comments +# /review on a pull request and uses the pr-review-toolkit plugin to dispatch +# specialized review agents (code quality, tests, error handling, types, +# comments, simplification). + +name: AI PR Review +on: + issue_comment: + types: [created] + +permissions: + checks: write + pull-requests: write + contents: read + +jobs: + ai-pr-review: + if: >- + github.event.issue.pull_request + && contains(github.event.comment.body, '/review') + uses: teamsnap/github-workflows/.github/workflows/ai-pr-review.yml@v5 + with: + pr_number: ${{ github.event.issue.number }} + client_id: ${{ vars.QA_ZOIDBERG_APP_ID }} + secrets: + app_pem: ${{ secrets.QA_ZOIDBERG_PEM }} + litellm_ai_pr_review_token: ${{ secrets.LITELLM_GH_PR_REVIEW_TOKEN }} + jira_api_token: ${{ secrets.ATLASSIAN_API_TOKEN_BOT_BENDER }}