{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "the-pr-agent-pr-agent--add-ai-reviews-to-every-pull-request",
 "repo": "The-PR-Agent/pr-agent",
 "repo_url": "https://github.com/The-PR-Agent/pr-agent",
 "repo_slug": "the-pr-agent-pr-agent",
 "title": "Add automatic AI reviews to every pull request with a GitHub Action",
 "page_title": "How to add automatic AI reviews to every pull request with a GitHub Action with PR Agent",
 "summary": "Drop a workflow file into the repo so PR-Agent reviews each opened or updated PR.",
 "who": "A maintainer who wants a first-pass review on every PR without a paid service.",
 "problem": "Reviewers spend time on routine issues before they get to the real design questions.",
 "outcome": "PR-Agent comments on each PR opened or synchronized, using your own model key.",
 "steps": [
  "Create `.github/workflows/pr-agent.yml`",
  "Trigger it on pull_request with types opened and synchronize",
  "Add a step that `uses: the-pr-agent/pr-agent@main` with OPENAI_KEY and GITHUB_TOKEN from secrets",
  "Open a PR and read the review comment"
 ],
 "agent_prompt": "Add .github/workflows/pr-agent.yml to this repo using the-pr-agent/pr-agent@main on pull_request opened and synchronize, with OPENAI_KEY and GITHUB_TOKEN from secrets. Do not commit any key.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "This card is written from the The-PR-Agent/pr-agent README, not from a test run by Deduped. Before you start, make sure you have an LLM API key such as OPENAI_KEY. Check the repo for newer instructions before you rely on these steps.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "An LLM API key such as OPENAI_KEY",
  "A GitHub token (the GitHub Action uses secrets.GITHUB_TOKEN)",
  "pip for the CLI, or a GitHub Actions workflow"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Store OPENAI_KEY as a repository secret, never in the workflow file."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/the-pr-agent-pr-agent/add-ai-reviews-to-every-pull-request/",
 "md": "https://dedupedai.com/use-cases/the-pr-agent-pr-agent/add-ai-reviews-to-every-pull-request/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/the-pr-agent-pr-agent--add-ai-reviews-to-every-pull-request.json",
 "api_version": "v1"
}
