generated from ztimson/template
Fixed review build
This commit is contained in:
9
.github/workflows/review.yml
vendored
9
.github/workflows/review.yml
vendored
@@ -7,14 +7,9 @@ jobs:
|
|||||||
review:
|
review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR
|
- name: Fetch code
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Fetch base branch
|
|
||||||
run: |
|
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 fetch origin ${{ github.event.pull_request.base.ref }}
|
||||||
git branch -r
|
git branch -r
|
||||||
|
|
||||||
|
|||||||
49
README.md
49
README.md
@@ -58,36 +58,31 @@ Automated code reviewer that uses AI to analyze git diffs and provide inline com
|
|||||||
```yaml
|
```yaml
|
||||||
name: Code review
|
name: Code review
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
review:
|
review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR
|
- name: Fetch code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
fetch-depth: 0
|
git fetch origin ${{ github.event.pull_request.base.ref }}
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
git branch -r
|
||||||
|
|
||||||
- name: Fetch base branch
|
- name: Run AI Review
|
||||||
run: |
|
uses: docker://git.zakscode.com/zakscode/ai-reporter:latest
|
||||||
git fetch origin ${{ github.event.pull_request.base.ref }}
|
env:
|
||||||
git branch -r
|
AI_HOST: anthropic
|
||||||
|
AI_MODEL: claude-sonnet-4-5
|
||||||
- name: Run AI Review
|
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
|
||||||
uses: docker://git.zakscode.com/zakscode/ai-reporter:latest
|
GIT_HOST: ${{ github.server_url }}
|
||||||
env:
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
AI_HOST: anthropic
|
GIT_REPO: ${{ github.event.repository.name }}
|
||||||
AI_MODEL: claude-sonnet-4-5
|
GIT_TOKEN: ${{ secrets.ASSISTANT_TOKEN }}
|
||||||
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
|
GIT_BRANCH: origin/${{ github.event.pull_request.base.ref }}
|
||||||
GIT_HOST: ${{ github.server_url }}
|
PULL_REQUEST: ${{ github.event.pull_request.number }}
|
||||||
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 }}
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user