Skip to content

Commit

Permalink
Merge pull request #127 from PaulRBerg/ci/openai-pr-reviewer
Browse files Browse the repository at this point in the history
ci: add OpenAI PR Reviewer
  • Loading branch information
PaulRBerg authored Jun 24, 2023
2 parents 8d6581d + 7aa514a commit f8ba1c9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "OpenAI PR Reviewer"

concurrency:
cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }}
group:
${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}-${{
github.event_name == 'pull_request_review_comment' && 'pr_comment' || 'pr' }}

on:
pull_request:
pull_request_review_comment:
types: ["created"]

permissions:
contents: "read"
pull-requests: "write"

jobs:
review:
runs-on: "ubuntu-latest"
steps:
- uses: "fluxninja/openai-pr-reviewer@latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
debug: false
review_comment_lgtm: false
review_simple_changes: false

0 comments on commit f8ba1c9

Please sign in to comment.