Added review
All checks were successful
Build and publish / Build Container (push) Successful in 1m1s

This commit is contained in:
2025-12-27 19:53:48 -05:00
parent c27802ca44
commit 5d3e15f0f5
3 changed files with 40 additions and 12 deletions

32
.github/workflows/review.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: AI Code Review
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Fetch base branch
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
git branch -r
- name: Run AI Review
uses: docker://git.zakscode.com/zakscode/ai-reporter:latest
env:
AI_HOST: anthropic
AI_MODEL: claude-sonnet-4-5
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
GIT_HOST: ${{ github.server_url }}
GIT_OWNER: ${{ github.repository_owner }}
GIT_REPO: ${{ github.event.repository.name }}
GIT_TOKEN: ${{ secrets.ASSISTANT_TOKEN }}
GIT_BRANCH: origin/${{ github.event.pull_request.base.ref }}
PULL_REQUEST: ${{ github.event.pull_request.number }}