From ef7c995b07c497e9fdb6b67aa013f4dccecd4a67 Mon Sep 17 00:00:00 2001 From: Roman Pavelka Date: Tue, 1 Aug 2023 15:01:16 +0200 Subject: [PATCH] Add OpenAI github actions --- .github/workflows/code-review.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 0000000..750ec6f --- /dev/null +++ b/.github/workflows/code-review.yml @@ -0,0 +1,19 @@ +name: Code Review + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + code-review: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v3 + - uses: sshnaidm/gpt-code-review-action@v1.0 + with: + openai-key: ${{ secrets.OPENAI_API_KEY }}