Skip to content

Commit

Permalink
Merge pull request #1904 from zyfra/feat/pr-reviwer
Browse files Browse the repository at this point in the history
feat(chore): pr ai reviewer #000
  • Loading branch information
ZurabDev authored Jul 25, 2024
2 parents a1a46d0 + eb26a48 commit 0b59e2c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-describe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
- name: PR Auto Describe
uses: salehhashemi1992/pr-auto-describe@main
with:
github-token: ${{ secrets.TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
openai-api-key: ${{ secrets.OA_KEY }}
openai-model: 'gpt-4o-mini' # Optional, you can use 'gpt-3.5-turbo' or 'gpt-4-32k' as well.
20 changes: 20 additions & 0 deletions .github/workflows/pr-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: AI Code Review

on:
pull_request:
types: [opened, synchronize]

jobs:
review:
permissions: write-all # Check permission when leave comment action failed
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: OpenAI PR Review
uses: cawcaw253/ai-review-action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OA_KEY }}
LANGUAGE: 'russian'
MODEL: 'gpt-4o-mini'

0 comments on commit 0b59e2c

Please sign in to comment.