ai-codereviewer/.github/workflows/code_review.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 10: cannot unmarshal !!str `! githu...` into model.Job

26 lines
920 B
YAML

name: Code Review with OpenAI
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
permissions: write-all
jobs:
if: '! github.event.pull_request.draft'
code_review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4-turbo-preview"
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.