From 3e90e5ebe2ba82305d0c664553de8c3d2acb5200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=90=A6?= Date: Wed, 29 Mar 2023 16:29:28 +0800 Subject: [PATCH] add chatgpt code reviewer (cherry picked from commit 7f6f5b5b454c3ac533e87ba43adeb5fd50d5ff9b) --- .github/workflows/cr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cr.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 00000000..95c683c7 --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,23 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + # Optional + LANGUAGE: Chinese + MODEL: + top_p: 1 + temperature: 1 \ No newline at end of file