Skip to content

Commit

Permalink
Update and rename ai_reviewer.yml to gpt_review.yml (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
thias15 committed Jun 2, 2024
1 parent 5e692db commit 6eb23a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ai_reviewer.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/gpt_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GPT Review

on:
issue_comment:
types: [created]

jobs:
gpt_review:
if: github.actor == 'thias15'
runs-on: ubuntu-latest
steps:
- name: Run GPT Code Review
if: |
contains(github.event.comment.body, '/gpt-review') ||
contains(github.event.comment.body, '/gr')
uses: cirolini/genai-code-review@v2
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_pr_id: ${{ github.event.number }}
openai_model: "gpt-4o" # optional
openai_temperature: 0.5 # optional
openai_max_tokens: 2048 # optional
mode: files # files or patch
language: en # optional, default is 'en'
custom_prompt: "" # optional

0 comments on commit 6eb23a9

Please sign in to comment.