Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

How to install The-PR-Agent/pr-agent. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.

The-PR-Agent/pr-agent Installation Guide

How to install The-PR-Agent/pr-agent. Official project installation instructions and setup guide.

⚡

Automated Install (Recommended)

Quick installation instructions for The-PR-Agent/pr-agent. This is the fastest way to complete project installation and setup.

Install via curl

curl -fsSL https://hexmos.com/ipm-install | bash && 
ipm i The-PR-Agent/pr-agent
or

Install via npx

npx @hexmos/ipm i The-PR-Agent/pr-agent

Prerequisites

Python

programming_language

Version: >=3.8

Docker

containerization

OpenAI API Key

api_key

GitHub Token

api_token

Manual Installation Methods

Manual installation instructions. How to install from GitHub source.

GitHub Action

git clone https://github.com/The-PR-Agent/pr-agent.git

cd pr-agent

touch .github/workflows/pr-agent.yml

echo "name: PR Agent
on: pull_request:
  types: [opened, synchronize]
jobs:
  pr_agent_job:
    runs-on: ubuntu-latest
    steps:
    - name: PR Agent action step
      uses: the-pr-agent/pr-agent@main
      env:
        OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" > .github/workflows/pr-agent.yml

CLI Usage

pip install "pr-agent[github]"

export OPENAI_KEY=your_key_here

pr-agent --pr_url https://github.com/owner/repo/pull/123 review

Docker

docker pull pragent/pr-agent