From bb848692973b47bb3a9cea128454b1cce702613e Mon Sep 17 00:00:00 2001 From: Ikuo Degawa Date: Sat, 27 Jul 2024 20:16:16 +0900 Subject: [PATCH] Add code review by chatgpt workflow --- .github/workflows/code_review.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..1e927ba1 --- /dev/null +++ b/.github/workflows/code_review.yml @@ -0,0 +1,28 @@ +name: Code Review + +on: + pull_request: + branches: + - master + types: + - opened + - synchronize + - ready_for_review + - reopened + paths-ignore: + - 'source/posts/**' + +jobs: + code_review: + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Code Review GPT + uses: mattzcarey/code-review-gpt@v0.1.9 + with: + MODEL: 'gpt-4o-mini' + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GITHUB_TOKEN: ${{ github.token }}