Skip to content

Commit

Permalink
Merge branch 'dev' into update-readme-and-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehollenback authored Apr 3, 2024
2 parents cb26af3 + c3d3226 commit 74d6b7b
Show file tree
Hide file tree
Showing 5 changed files with 1,338 additions and 1,313 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ permissions: write-all
jobs:
if: '! github.event.pull_request.draft'
code_review:
if: '! github.event.pull_request.draft'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/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-turbo-preview"
OPENAI_API_MODEL: "gpt-3.5-turbo"
exclude: "yarn.lock, dist/**, **/*.json, **/*.md, **/*.yaml, **/*.xml"
custom_prompts: |
Do not worry about the verbosity of variable names, as long as they are somewhat descriptive.
Be sure to call out potential null pointer exceptions.
Be sure to call out concurrency issues and potential race conditions.
Do not worry about things a static analyzer would catch in real-time during development.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ inputs:
description: "OpenAI API model."
required: false
default: "gpt-4"
max_tokens:
description: "Maximum number of tokens that can be generated per analysis."
required: false
default: "700"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
custom_prompts:
description: "Custom commands to augment the agent's prompts with. Each line is an individual command."
required: false
default: ""
runs:
using: "node16"
main: "dist/index.js"
Expand Down
Loading

0 comments on commit 74d6b7b

Please sign in to comment.