From 6f7217f400a4cdcfe15d50f7e2ccce30819c3d6d Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 6 Feb 2026 17:15:50 -0500 Subject: [PATCH 1/2] chore: add AI code review workflow for PRs Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ai-review.yaml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/ai-review.yaml diff --git a/.gitea/workflows/ai-review.yaml b/.gitea/workflows/ai-review.yaml new file mode 100644 index 0000000..b7cb099 --- /dev/null +++ b/.gitea/workflows/ai-review.yaml @@ -0,0 +1,34 @@ +name: AI Code Review + +on: + pull_request: + branches: + - main + +jobs: + ai-review: + name: AI Code Review + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: AI Review + uses: Nikita-Filonov/ai-review@v0.56.0 + with: + review-command: run + env: + LLM__PROVIDER: "OPENAI" + LLM__META__MODEL: ${{ vars.AI_REVIEW_MODEL }} + LLM__META__MAX_TOKENS: "15000" + LLM__META__TEMPERATURE: "0.3" + LLM__HTTP_CLIENT__API_URL: "https://api.openai.com/v1" + LLM__HTTP_CLIENT__API_TOKEN: ${{ secrets.OPENAI_API_KEY }} + VCS__PROVIDER: "GITEA" + VCS__PIPELINE__OWNER: ${{ github.repository_owner }} + VCS__PIPELINE__REPO: ${{ github.event.repository.name }} + VCS__PIPELINE__PULL_NUMBER: ${{ github.event.pull_request.number }} + VCS__HTTP_CLIENT__API_URL: ${{ github.server_url }}/api/v1 + VCS__HTTP_CLIENT__API_TOKEN: ${{ secrets.AI_REVIEW_GITEA_TOKEN }} From 72998cfbca55e1cb5b302a365ecbb5c494ad4a96 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 6 Feb 2026 17:18:07 -0500 Subject: [PATCH 2/2] fix: add container image for ai-review workflow The default gitea/act_runner image has no Node.js, which actions/checkout@v4 requires. Use catthehacker/ubuntu:act-latest like the kubernetes repo. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ai-review.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/ai-review.yaml b/.gitea/workflows/ai-review.yaml index b7cb099..dac9f13 100644 --- a/.gitea/workflows/ai-review.yaml +++ b/.gitea/workflows/ai-review.yaml @@ -9,6 +9,8 @@ jobs: ai-review: name: AI Code Review runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest steps: - name: Checkout code uses: actions/checkout@v4