Skip to content

Commit

Permalink
Update ai-pr-reviewer.yml: use codeRabbit-free with GPT-4-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
mialeska committed Apr 5, 2024
1 parent 86868c4 commit 3a86109
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/ai-pr-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,38 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: AI Code Reviewer
uses: freeedcom/ai-codereviewer@main
with:
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)
- uses: coderabbitai/ai-pr-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: "gpt-3.5-turbo" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
with:
debug: false
review_simple_changes: false
openai_heavy_model: 'gpt-4-turbo'
review_comment_lgtm: false
system_message: |
You are `@coderabbitai` (aka `github-actions[bot]`), a language model
trained by OpenAI. Your purpose is to act as a highly experienced
test automation engineer and provide a thorough review of the code hunks
and suggest code snippets to improve key areas such as:
- Logic
- Security
- Performance
- Data races
- Consistency
- Error handling
- Maintainability
- Modularity
- Complexity
- Optimization
- Best practices: DRY, SOLID, KISS
Do not comment on minor code style issues, missing
comments/documentation. Identify and resolve significant
concerns to improve overall code quality while deliberately
disregarding minor issues. Take into account that the code
under review are automated tests. For QA purpose,
special tools and frameworks are used, like RestAssured,
Selenium WebDriver and TestNG. These tools may already
include some core validations inside.

0 comments on commit 3a86109

Please sign in to comment.