Fixed review build
Some checks failed
Code review / review (pull_request) Failing after 1s
Build and publish / Build Container (push) Successful in 1m11s

This commit is contained in:
2025-12-27 20:01:11 -05:00
parent 1396f4b305
commit f50324a072
2 changed files with 24 additions and 34 deletions

View File

@@ -7,14 +7,9 @@ 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
- name: Fetch code
run: |
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
git fetch origin ${{ github.event.pull_request.base.ref }}
git branch -r

View File

@@ -58,36 +58,31 @@ Automated code reviewer that uses AI to analyze git diffs and provide inline com
```yaml
name: Code review
on:
pull_request:
types: [opened, synchronize, reopened]
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 }}
review:
runs-on: ubuntu-latest
steps:
- name: Fetch code
run: |
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
git fetch origin ${{ github.event.pull_request.base.ref }}
git branch -r
- 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 }}
- 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 }}
```