From 08a52f9779015a45c66c650681c140f19e5b23b7 Mon Sep 17 00:00:00 2001 From: luanxu-mxc Date: Mon, 5 Jun 2023 02:49:18 +0800 Subject: [PATCH] feat: Code Review --- .github/workflows/test-action.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test-action.yml diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml new file mode 100644 index 000000000000..77564052b244 --- /dev/null +++ b/.github/workflows/test-action.yml @@ -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 }} \ No newline at end of file