Skip to content

Commit

Permalink
Update ai-pr-reviewer.yml: disable the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mialeska committed Apr 8, 2024
1 parent b7ca6d6 commit 397435b
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/ai-pr-reviewer.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
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
# 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.
# 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 397435b

Please sign in to comment.