-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ai-pr-reviewer.yml: try code-review-gpt
- Loading branch information
Showing
1 changed file
with
28 additions
and
52 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,33 @@ | ||
# name: Code Review | ||
name: Code Review | ||
|
||
# permissions: | ||
# contents: read | ||
# pull-requests: write | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
# on: | ||
# pull_request: | ||
# pull_request_review_comment: | ||
# types: [created] | ||
on: | ||
pull_request: | ||
pull_request_review_comment: | ||
types: [created] | ||
|
||
# concurrency: | ||
# group: | ||
# ${{ github.repository }}-${{ github.event.number || github.head_ref || | ||
# github.sha }}-${{ github.workflow }}-${{ github.event_name == | ||
# 'pull_request_review_comment' && 'pr_comment' || 'pr' }} | ||
# cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} | ||
concurrency: | ||
group: | ||
${{ github.repository }}-${{ github.event.number || github.head_ref || | ||
github.sha }}-${{ github.workflow }}-${{ github.event_name == | ||
'pull_request_review_comment' && 'pr_comment' || 'pr' }} | ||
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} | ||
|
||
# jobs: | ||
# review: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: coderabbitai/ai-pr-reviewer@latest | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
# with: | ||
# debug: false | ||
# review_simple_changes: false | ||
# openai_heavy_model: 'gpt-4-1106-preview' | ||
# 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. | ||
jobs: | ||
run_code_review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Code Review GPT | ||
uses: mattzcarey/[email protected] | ||
with: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
MODEL: 'gpt-4-1106-preview' | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|