From 2c94bacaeb19d232da0748433669724c3a16c6bd Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Mon, 3 Apr 2023 15:04:15 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0codeReview=20action=20&?= =?UTF-8?q?=20pr=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 23 +++++++++++++++++++++++ .github/workflows/cr.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/cr.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..3659a9b3 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,23 @@ + + + +**What kind of change does this PR introduce?** (check at least one) + +- [ ] Bugfix +- [ ] Feature +- [ ] Code style update +- [ ] Refactor +- [ ] Docs +- [ ] Build-related changes +- [ ] Other, please describe: + +**Does this PR introduce a breaking change?** (check one) + +- [ ] Yes +- [ ] No + +If yes, please describe the impact and migration path for existing applications: + +**Related issue (if exists):** + +**Other information:** diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 00000000..7ebeb10f --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,26 @@ +name: Code Review + + +permissions: + contents: read + pull-requests: write + + +on: + pull_request: + types: [opened, reopened] + + +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: gpt-3.5-turbo + top_p: 1 + temperature: 1 \ No newline at end of file