Skip to content

Commit

Permalink
feat: Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
luanxu-mxc committed Jun 4, 2023
1 parent f006e4d commit 08a52f9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GPTReviewWorkflow

on:
pull_request:
types:
- opened
- synchronize

jobs:
review_with_gpt:
runs-on: ubuntu-latest

steps:
- name: GPTReviewWorkflow
uses: sheenhx/GPT4ReviewWorkflow@chunk
with:
GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
GIT_PATCH_OUTPUT: ${{ github.event.pull_request.patch_url }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_ORG_KEY: ${{ secrets.OPENAI_ORG_KEY }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
REPOSITORY_NAME: ${{ github.repository }}

0 comments on commit 08a52f9

Please sign in to comment.