From 1924b18557e1de68be60cf55bff6bdbb36eecbdc Mon Sep 17 00:00:00 2001 From: hyochan Date: Tue, 11 Jun 2024 14:34:39 +0900 Subject: [PATCH] ci: code-review gpt --- .github/workflows/code-review.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/code-review.yml diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml new file mode 100644 index 00000000..9f98d1ec --- /dev/null +++ b/.github/workflows/code-review.yml @@ -0,0 +1,24 @@ +name: Code Review GPT + +on: + pull_request: + branches: [main] + +permissions: + pull-requests: write + contents: read + +jobs: + run_code_review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Code Review GPT + uses: mattzcarey/code-review-gpt@v0.1.8 + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-4o' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}