From b242c755293ae7a6ecd8327c9a59abfb0ee7574f Mon Sep 17 00:00:00 2001 From: Bogdan Stanga Date: Fri, 22 Nov 2024 13:22:08 +0200 Subject: [PATCH] install ai-reviewer --- .github/workflows/presubmit.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/presubmit.yaml diff --git a/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml new file mode 100644 index 0000000..3fe7cc6 --- /dev/null +++ b/.github/workflows/presubmit.yaml @@ -0,0 +1,21 @@ +name: Presubmit.ai + +permissions: + contents: read + pull-requests: write + issues: write + +on: + pull_request: + pull_request_review_comment: + types: [created] + +jobs: + review: + runs-on: ubuntu-latest + steps: + - uses: presubmit/ai-reviewer@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LLM_API_KEY: ${{ secrets.LLM_API_KEY }} + LLM_MODEL: "claude-3-5-sonnet-20241022"