Skip to content

Commit

Permalink
feat: add AI PR Reviewer (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar authored Oct 26, 2023
1 parent 6cb608e commit 26bf9ca
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ai-pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: AI Code Review

permissions:
contents: read
pull-requests: write

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' }}

jobs:
review:
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
steps:
- uses: coderabbitai/ai-pr-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
debug: true
review_simple_changes: false
review_comment_lgtm: false

0 comments on commit 26bf9ca

Please sign in to comment.