From da32eb5aaeabf81437e5b63de9b44a774f90ed85 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 21 Jan 2023 12:34:17 +0800 Subject: [PATCH] Create main.yml (#40350) --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..c7b0bca968 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +on: [pull_request] + +name: ChatGPT CodeReview + +jobs: + chatgpt_comment: + runs-on: ubuntu-latest + name: Let chatgpt comment on your PR. + steps: + - name: ChatGPT comment + uses: kxxt/chatgpt-action@v0.3 + id: chatgpt + with: + number: ${{ github.event.pull_request.number }} + sessionToken: ${{ secrets.CHATGPT_SESSION_TOKEN }} + split: 'yolo' # Use true to enable the unstable split feature. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}