From 63c83415df644d0b8321bd29fb36ab3c6105dd08 Mon Sep 17 00:00:00 2001 From: Luke Hollenback <8144622+lukehollenback@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:32:30 -0600 Subject: [PATCH] Updated action workflow configuration. --- .github/workflows/code_review.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml index b5ab5ca..702077d 100644 --- a/.github/workflows/code_review.yml +++ b/.github/workflows/code_review.yml @@ -4,17 +4,22 @@ on: types: - opened - synchronize + - ready_for_review permissions: write-all jobs: code_review: + if: '! github.event.pull_request.draft' runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Code Review - uses: lukehollenback/ai-codereviewer@main + uses: lukehollenback/ai-codereviewer@main-luke with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_MODEL: "gpt-4-1106-preview" - exclude: "yarn.lock,dist/**" + exclude: "yarn.lock, dist/**, **/*.json, **/*.md, **/*.yaml, **/*.xml" + custom_prompts: | + Do not worry about the verbosity of variable naming conventions, as long as they are somewhat descriptive. + Be sure to call out potential null pointer exceptions.