From aead7e132655ecaf58f8f3fda7c3a6d7d5505306 Mon Sep 17 00:00:00 2001 From: Ali-Study-Notes Date: Sat, 24 Oct 2026 03:35:27 +0000 Subject: [PATCH] Add AI review workflow for pull requests This workflow triggers an AI review on new pull requests, summarizing code changes and identifying bugs. Signed-off-by: Ali-Study-Notes --- .../workflows/.github/workflows/ai-review.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/.github/workflows/ai-review.yml diff --git a/.github/workflows/.github/workflows/ai-review.yml b/.github/workflows/.github/workflows/ai-review.yml new file mode 100644 index 000000000..71e207516 --- /dev/null +++ b/.github/workflows/.github/workflows/ai-review.yml @@ -0,0 +1,19 @@ +name: Gemini AI Code Review +on: + pull_request: + types: [opened] # This triggers the AI when a new PR is opened + +jobs: + review-code: + runs-on: ubuntu-latest + steps: + - name: Checkout repository code + uses: actions/checkout@v4 + + - name: Ask Gemini to summarize + uses: google-github-actions/run-gemini-cli@v1 + with: + # The instruction you give the AI + prompt: "Please review the attached code changes and summarize any bugs." + # Authenticating securely via GitHub Secrets + api-key: ${{ secrets.GEMINI_API_KEY }}