fix comment issues + add support to o1-mini #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Review with OpenAI | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
permissions: write-all | |
jobs: | |
code_review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: AI Code Reviewer | |
uses: ./. | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_API_MODEL: "gpt-4o-mini" | |
REVIEW_MAX_COMMENTS: 5 # Optional: defaults to 10 | |
APPROVE_REVIEWS: true # Optional: defaults to false | |
exclude: "yarn.lock,dist/**" |