From c8dda6bcd8afb46a0c479128b948d932a207156a Mon Sep 17 00:00:00 2001 From: siyul-park Date: Tue, 28 Nov 2023 04:26:25 -0500 Subject: [PATCH] chore: add auto code review by chatgpt --- .github/workflows/check.yml | 2 +- .github/workflows/code_review.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/code_review.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6f6e7883..b00c2d96 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ jobs: check: strategy: matrix: - os: [ ubuntu-20.04, macos-latest ] + os: [ ubuntu-20.04 ] go: [ '1.21' ] name: Check ${{ matrix.os }} @ Go ${{ matrix.go }} runs-on: ${{ matrix.os }} diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml new file mode 100644 index 00000000..ef626fd2 --- /dev/null +++ b/.github/workflows/code_review.yml @@ -0,0 +1,21 @@ +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: Korean + PROMPT: \ No newline at end of file