Skip to content

Commit

Permalink
Update ai pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki777 committed Oct 31, 2023
1 parent 7f65455 commit f4aa6af
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/openai-pr-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ permissions:
pull-requests: write

on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]
pull_request_review_comment:
types: [created]

Expand All @@ -17,11 +18,16 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: fluxninja/openai-pr-reviewer@latest
- uses: actions/checkout@v3
with:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{github.event.pull_request.head.ref}}
submodules: false
- uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
with:
debug: false
review_simple_changes: false
debug: true
review_comment_lgtm: false
openai_heavy_model: gpt-4

0 comments on commit f4aa6af

Please sign in to comment.