forked from aidar-freeed/ai-codereviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b6f3653
Showing
12 changed files
with
20,132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Code Review with OpenAI | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
permissions: write-all | ||
jobs: | ||
code_review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Code Review | ||
uses: freeedcom/open-ai-codereviewer@test-this | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GH_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
exclude: "yarn.lock,dist/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.idea | ||
lib/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# OpenAI code reviewer | ||
|
||
This action uses OpenAI apis to review the code you write. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "OpenAI Code Review Action" | ||
description: "Perform code reviews and comment on diffs using OpenAI API." | ||
inputs: | ||
GITHUB_TOKEN: | ||
description: "GitHub token to interact with the repository." | ||
required: true | ||
OPENAI_API_KEY: | ||
description: "OpenAI API key for GPT." | ||
required: true | ||
exclude: | ||
description: "Glob patterns to exclude files from the diff analysis" | ||
required: false | ||
default: "" | ||
runs: | ||
using: "node16" | ||
main: "dist/index.js" |
Oops, something went wrong.