From 62292b1dfe972922c6c943f6ff78d20615cf3794 Mon Sep 17 00:00:00 2001 From: ThankTheMaker <33477197+thankthemaker@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:37:40 +0200 Subject: [PATCH] Update codereviewer.yaml --- .github/workflows/codereviewer.yaml | 33 +++++++++-------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/codereviewer.yaml b/.github/workflows/codereviewer.yaml index 69b279365..513cf8aa0 100644 --- a/.github/workflows/codereviewer.yaml +++ b/.github/workflows/codereviewer.yaml @@ -8,29 +8,16 @@ on: - synchronize permissions: write-all jobs: - # review: - # runs-on: ubuntu-latest - # steps: - # - name: Checkout Repo - # uses: actions/checkout@v3 - # - # - name: AI Code Reviewer - # uses: thankthemaker/ai-code-reviewer@main - # with: - # GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - # OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - # OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4" - # exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas - - codeball_job: + review: runs-on: ubuntu-latest - name: Codeball steps: - - name: Codeball - uses: sturdy-dev/codeball-action@v2 + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: AI Code Reviewer + uses: thankthemaker/ai-code-reviewer@main with: - # For all configuration options see https://github.com/sturdy-dev/codeball-action/blob/v2/action.yml - approvePullRequests: "true" - labelPullRequestsWhenApproved: "true" - labelPullRequestsWhenReviewNeeded: "false" - failJobsWhenReviewNeeded: "false" + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4" + exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas