From d90ccb35b5eca3fae57352189c8a2279e8742e5f Mon Sep 17 00:00:00 2001 From: Ramon Paolo Maram <53312850+ramonpaolo@users.noreply.github.com> Date: Wed, 14 Jan 2026 00:36:40 -0300 Subject: [PATCH] ci: create code-review.yml --- .github/workflows/code-review.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/code-review.yml diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml new file mode 100644 index 0000000..b71a51f --- /dev/null +++ b/.github/workflows/code-review.yml @@ -0,0 +1,30 @@ +name: Code Review with MiniMax + +on: + pull_request: + types: + - opened + - synchronize + +permissions: write-all + +jobs: + code_review: + timeout-minutes: 1 + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: AI Code Reviewer + uses: ramonpaolo/ai-codereviewer@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AI_BASE_URL: "https://api.minimax.io/v1/text/chatcompletion_v2" + AI_API_KEY: ${{ secrets.AI_API_KEY }} + AI_MODEL: "MiniMax-M2.1" + AI_PROVIDER: "custom" + + PROJECT_CONTEXT: "This is an application written in Python 3" + APPROVE_REVIEWS: false # Optional: defaults to false + EXCLUDE_PATTERNS: "**/*.lock,**/*-lock.json"