Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

GitHub Actions ChatGPT PR Reviewer

1.0.2

GitHub Actions ChatGPT PR Reviewer

check-circle

GitHub Actions ChatGPT PR Reviewer

A Github Action that uses ChatGPT to review PRs

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Actions ChatGPT PR Reviewer

uses: osl-incubator/[email protected]

Learn more about this action in osl-incubator/github-actions-chatgpt-pr-reviewer

Choose a version

GitHub Actions ChatGPT PR Reviewer

This GitHub actions uses OpenAI ChatGPT in order to review the changes presented in a PR and will recommend improvements.

How to use

Include the following into your github actions step

      - name: GitHub Actions ChatGPT PR Reviewer
        uses: osl-incubator/[email protected]
        with:
          openai_api_key: ${{ secrets.OPENAI_API_KEY }}
          openai_model: 'gpt-3.5-turbo'
          openai_temperature: 0.5
          openai_max_tokens: 2048
          github_token: ${{ secrets.GITHUB_TOKEN }}
          github_pr_id: ${{ github.event.number }}

Note: this GitHub actions is based on the following tutorial: https://shipyard.build/blog/your-first-python-github-action/ and very inspired on https://github.com/cirolini/chatgpt-github-actions