From 975a01ed69dd073194d1571a732b8654e20b623b Mon Sep 17 00:00:00 2001 From: hustcc Date: Mon, 24 Apr 2023 21:07:47 +0800 Subject: [PATCH] chore: add gpt for code review (#4828) * chore: add gpt for code review * chore: rename secrets * chore: trigger action * chore: use GITHUB_TOKEN --- .github/workflows/cr.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 0000000000..2d49c99aec --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,22 @@ +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 }} + LANGUAGE: Chinese + MODEL: + top_p: 1 + temperature: 1 \ No newline at end of file