From ebe12ff13da1c7f329cc8acaf6c95c584c9c9edc Mon Sep 17 00:00:00 2001 From: AugenAugen <71352143+KleinerCodeDrago@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:20:25 +0100 Subject: [PATCH] Add code review workflow (#14) * Add code review workflow * Fix typo in prompt message * Update PROMPT message in cr.yml --------- --- .github/workflows/cr.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cr.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 0000000..90e683a --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,19 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + PROMPT: "You are a software engineer who should review this pull request. You are currently typing in the comment section:"