From 4e9c06d34b93e773dddcb456f228af1e9e38d45d Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Mon, 19 Feb 2024 15:36:19 +0200 Subject: [PATCH] WIP test review code by AI --- .github/workflows/aicodereview.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/aicodereview.yml diff --git a/.github/workflows/aicodereview.yml b/.github/workflows/aicodereview.yml new file mode 100644 index 0000000..c7d895f --- /dev/null +++ b/.github/workflows/aicodereview.yml @@ -0,0 +1,17 @@ +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v4 + - name: OpenAI Code review Github Action + uses: sshnaidm/gpt-code-review-action@v2.0 + with: + openai-key: ${{ secrets.OPENAI_API_KEY }} + max-length: 4000 + model: 'gpt-4' + prompt: 'You are helpful assistant is here to review the code change below and provide feedback.'