From d0186727ced8b5707d07c7fa80f5ebd9c0e055ee Mon Sep 17 00:00:00 2001 From: wancat Date: Fri, 13 Oct 2023 00:18:56 +0800 Subject: [PATCH] feat: add chatgpt code reivew --- .github/workflows/code_review.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/code_review.yml diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml new file mode 100644 index 0000000..9a54622 --- /dev/null +++ b/.github/workflows/code_review.yml @@ -0,0 +1,15 @@ +name: CI/CD + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + gpt-review: + runs-on: ubuntu-latest + + steps: + - name: gpt-review + uses: microsoft/gpt-review@v0.9.5 + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}