Skip to content

Commit

Permalink
Add Gitignore and package.json files, and implement GPT code review a…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
jelster committed Jan 26, 2024
0 parents commit de6a698
Show file tree
Hide file tree
Showing 5 changed files with 750 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Node.js
node_modules/
npm-debug.log
yarn-error.log

# Docker
.dockerignore
.docker/
19 changes: 19 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'GPT Review'
description: 'Submit PR Diff to GPT for Review'
inputs:
github_token:
description: 'GitHub token. Required for posting comments to a pull request.'
required: true
openai_api_key:
description: 'OpenAI API key. Required if the OPENAI_API_KEY environment variable is not set.'
required: false
pr_review_prompt_template:
description: 'Provide a PR review prompt template to optionally override the default prompt template with your own.'
required: false
default: ''
outputs:
pr_review:
description: 'The PR review text.'
runs:
using: 'node20'
main: './src/action.js'
Loading

0 comments on commit de6a698

Please sign in to comment.