diff --git a/.github/workflows/code-review.yaml b/.github/workflows/code-review.yaml index 5e17c20..2953a8f 100644 --- a/.github/workflows/code-review.yaml +++ b/.github/workflows/code-review.yaml @@ -2,7 +2,7 @@ name: Code review on: pull_request: - types: [opened, synchronize, reopened] + types: [opened, synchronize, reopened, labeled] jobs: review: @@ -15,8 +15,8 @@ jobs: git checkout ${{ github.event.pull_request.head.sha }} git fetch origin ${{ github.event.pull_request.base.ref }} - - name: Run AI Review - run: npx -y @ztimson/ai-agents@latest review + - name: Create review + run: npx -y -p @ztimson/ai-agents@latest review $GITHUB_WORKSPACE env: AI_HOST: anthropic AI_MODEL: claude-sonnet-4-5