From fbc25508f3749222a52beee34b6b7d82eecbd24e Mon Sep 17 00:00:00 2001 From: thias15 Date: Sat, 1 Jun 2024 15:06:03 -0700 Subject: [PATCH] create ai_reviewer workflow (#415) * add ai_reviewer.yml --- .github/workflows/ai_reviewer.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ai_reviewer.yml diff --git a/.github/workflows/ai_reviewer.yml b/.github/workflows/ai_reviewer.yml new file mode 100644 index 000000000..e329de61f --- /dev/null +++ b/.github/workflows/ai_reviewer.yml @@ -0,0 +1,25 @@ +name: Code Review GPT + +on: + pull_request: + types: + - opened + - synchronize + branches: [master] + +jobs: + run_code_review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + 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: ${{ github.token }} + +