Skip to content

Commit

Permalink
Merge pull request #3044 from h1alexbel/3040
Browse files Browse the repository at this point in the history
feat(#3040): gpt code review
  • Loading branch information
yegor256 committed Apr 8, 2024
2 parents af05536 + 405db6d commit ad2d838
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/ai-code-reviewer.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: AI Code Reviewer
permissions:
contents: read
issues: write
pull-requests: write
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: English
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: gpt-4
PROMPT: Please check if there are any confusions or irregularities in the following code diff
top_p: 1
temperature: 1
max_tokens: 10000
MAX_PATCH_LENGTH: 10000

0 comments on commit ad2d838

Please sign in to comment.