Skip to content

Commit

Permalink
Merge pull request #1453 from codatio/feat/reviewer
Browse files Browse the repository at this point in the history
replace workflows
  • Loading branch information
mcclowes authored Nov 25, 2024
2 parents 1a5e292 + ccdd74f commit 1e92983
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/codereviews.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
- name: Code Review with ChatGPT
uses: cirolini/genai-code-review@v2
on:
pull_request:
types: [opened, synchronize]

jobs:
code_review_job:
runs-on: ubuntu-latest
name: ChatGPT Code Review
steps:
- name: GenAI Code Review
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_model: "gpt-3.5-turbo" # 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
17 changes: 0 additions & 17 deletions .github/workflows/diff-descriptions.yml

This file was deleted.

0 comments on commit 1e92983

Please sign in to comment.