Merge pull request #1 from freeedcom/remove-open-ai-from-the-action-name

remove openai from the action name
This commit is contained in:
Ville Saukkonen 2023-03-23 00:44:27 +02:00 committed by GitHub
commit 036cdd7961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

@ -12,8 +12,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Code Review
uses: freeedcom/open-ai-codereviewer@main
uses: freeedcom/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GH_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
exclude: "yarn.lock,dist/**"

@ -1,4 +1,4 @@
name: "OpenAI Code Review Action"
name: "AI Code Review Action"
description: "Perform code reviews and comment on diffs using OpenAI API."
inputs:
GITHUB_TOKEN:

2
dist/index.js vendored

@ -97,7 +97,7 @@ function analyzeCode(parsedDiff) {
}
function createPrompt(file, chunk) {
return `
Review the following code changes in the file "${file.to}" and provide comments and suggestions ONLY if there is something to improve. If the code looks good, DO NOT return any text (leave the response completely empty)
Review the following code changes in the file "${file.to}" and provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. If the code looks good, DO NOT return any text (leave the response completely empty)
${chunk.content}
${chunk.changes

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -72,7 +72,7 @@ function createPrompt(file: File, chunk: Chunk): string {
return `
Review the following code changes in the file "${
file.to
}" and provide comments and suggestions ONLY if there is something to improve. If the code looks good, DO NOT return any text (leave the response completely empty)
}" and provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. If the code looks good, DO NOT return any text (leave the response completely empty)
${chunk.content}
${chunk.changes