fix: Switch to gemini
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 32s
CI / Docker backend validation (pull_request) Successful in 30s
CI / oxlint (pull_request) Successful in 38s
CI / prettier (pull_request) Successful in 43s
Gemini Review / Gemini (pull_request) Successful in 1m3s
CI / Checkstyle Main (pull_request) Successful in 1m21s
CI / test-build (pull_request) Successful in 58s
CI / Backend Tests (pull_request) Successful in 2m5s

This commit is contained in:
Jan K9f 2025-05-28 15:14:41 +02:00
commit fcd3290875

View file

@ -1,12 +1,12 @@
name: Setup Gitea Tea CLI name: Gemini Review
on: on:
pull_request: pull_request:
types: [opened, synchronize] # Runs on new PRs and updates types: [opened, synchronize] # Runs on new PRs and updates
jobs: jobs:
setup-and-login: Gemini:
runs-on: ubuntu-latest runs-on: local
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -31,7 +31,7 @@ jobs:
TEA_VERSION=$(echo "${{ steps.tea_version.outputs.version }}") TEA_VERSION=$(echo "${{ steps.tea_version.outputs.version }}")
wget "https://gitea.com/gitea/tea/releases/download/v${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" -O tea wget "https://gitea.com/gitea/tea/releases/download/v${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" -O tea
chmod +x tea chmod +x tea
sudo mv tea /usr/local/bin/tea mv tea /usr/local/bin/tea
- name: Verify Tea Installation - name: Verify Tea Installation
run: tea --version run: tea --version
@ -57,13 +57,13 @@ jobs:
- name: Install claude code - name: Install claude code
run: bun i -g @anthropic-ai/claude-code run: bun i -g @anthropic-ai/claude-code
- name: Claude PR Review - name: Gemini PR Review
if: steps.check-renovate.outputs.author != 'Renovate Bot' if: steps.check-renovate.outputs.author != 'Renovate Bot'
env: env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
PR_NUMBER: ${{ github.event.number }} PR_NUMBER: ${{ github.event.number }}
run: | run: |
claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*) Read Grep WebFetch Glob LS" -p "You are a code review assistant. Your task is to review the changes in Pull Request #${PR_NUMBER}. All relevant changes can be seen by looking at the git diff HEAD...main (NEVER EVER REVIEW ALL THE CODE ONLY THE ONE FROM THE DIFF you can use the rest as context) or using the tea cli which you can use and we are on gitea. Also make sure to only review the changes in this pull request ANTHROPIC_BASE_URL=${{ secrets.ANTHROPIC_BASE_URL }} claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*) Read Grep WebFetch Glob LS" -p "You are a code review assistant. Your task is to review the changes in Pull Request #${PR_NUMBER}. All relevant changes can be seen by looking at the git diff HEAD...main (NEVER EVER REVIEW ALL THE CODE ONLY THE ONE FROM THE DIFF you can use the rest as context) or using the tea cli which you can use and we are on gitea. Also make sure to only review the changes in this pull request
Only provide constructive feedback on the quality, correctness, readability, and potential issues in the code. Do not make any changes or suggest complete rewrites—just review what is there. Only provide constructive feedback on the quality, correctness, readability, and potential issues in the code. Do not make any changes or suggest complete rewrites—just review what is there.
@ -74,4 +74,5 @@ jobs:
Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF Make sure the comment is clear, professional, and helpful. Only run the tea comment command once you're finished reviewing all changes. AND MOST IMPORTANDLY ONLY REVIEW THE DIFF FROM THE CURRENT STATE TO THE MAIN BRANCH TO GET THAT USE GIT DIFF
You may also use the tea cli to find out various things about the pull request You may also use the tea cli to find out various things about the pull request
Don't be too strict Don't be too strict
Also MAKE SURE TO ALWAYS MENTION WHAT FILES AND LINE NUMBERS ARE WRONG" Also MAKE SURE TO ALWAYS MENTION WHAT FILES AND LINE NUMBERS ARE WRONG
Use the tea cli at all cost"