From 5a2f3525bcc4fb07bddef5ac595e7531a8eacb21 Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Mon, 15 Jan 2024 11:24:31 +0100 Subject: [PATCH] ci: add gpt review --- .github/workflows/gpt_review.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/gpt_review.yml diff --git a/.github/workflows/gpt_review.yml b/.github/workflows/gpt_review.yml new file mode 100644 index 0000000..27fa942 --- /dev/null +++ b/.github/workflows/gpt_review.yml @@ -0,0 +1,33 @@ +name: Syntax Review +on: [push, pull_request] + +jobs: + gpt_review: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Syntax Review + uses: nodify-at/gpt-pull-bot@1.0.3 + with: + api-key: ${{ secrets.GPT_API_KEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + model: gpt-3.5-turbo + review-focus: syntax + + - name: Performance Review + uses: nodify-at/gpt-pull-bot@1.0.3 + with: + api-key: ${{ secrets.GPT_API_KEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + model: gpt-3.5-turbo + review-focus: performance + + - name: Security Review + uses: nodify-at/gpt-pull-bot@1.0.3 + with: + api-key: ${{ secrets.GPT_API_KEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + model: gpt-3.5-turbo + review-focus: security