From 45c20cbd651c31ff2490aafbef35f81c22cc306b Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Fri, 7 Apr 2023 10:06:12 +0800 Subject: [PATCH] test: add gpt cr https://github.com/eggjs/egg/issues/5161 --- .github/workflows/cr.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..28e0b4b5 --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,19 @@ +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@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + LANGUAGE: Chinese