Use GH config dir

This commit is contained in:
Daniel Kentfield 2024-11-27 09:59:06 +00:00
parent ed407c8427
commit eea1319b0a
6 changed files with 21 additions and 21 deletions

View file

@ -1,4 +1,5 @@
name: Code Review with OpenAI
name: AI Code Reviewer
on:
pull_request:
types:
@ -6,15 +7,16 @@ on:
- synchronize
permissions: write-all
jobs:
code_review:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout Repo
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/ai-codereviewer@main
- name: AI Code Reviewer
uses: dankentfield/ai-code-reviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-4-1106-preview"
exclude: "yarn.lock,dist/**"
OPENAI_API_MODEL: "gpt-4o" # Optional: defaults to "gpt-4"
config-file: .github/config/rules.yaml