pr-approve

Automates GitHub pull request approval after verifying CI status and code quality.

2|Updated Apr 6, 2017
One-click install
npx skills add https://github.com/shiiman/dotfiles --skill pr-approve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-approve
Source: https://github.com/shiiman/dotfiles/tree/main/ai/codex/skills/pr-approve
Command: npx skills add https://github.com/shiiman/dotfiles --skill pr-approve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PR approvals can be error-prone and slow; this skill streamlines the process by approving PRs when checks pass and the reviewer confirms readiness.

Core Features & Use Cases

  • Automated approval: Submit an approve review on a target PR after verification.
  • Pre-merge checks: Ensure CI and required checks are satisfied before approval.
  • Use Case: A maintainer can quickly LGTM a PR that meets all standards, saving time on repetitive reviews.

Quick Start

Approve the target PR once it has passed CI and reviews.

Frequently Asked Questions about pr-approve

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically approve a GitHub pull request after CI checks pass?

You can automatically approve a GitHub pull request after CI checks pass by running a workflow that verifies code quality and required check statuses, then submits an approve review using the gh pr review command.

What is the best way to automate code review approvals for pull requests?

Automating code review approvals for pull requests is best handled by a script that fetches PR state via gh pr view, validates CI status, and submits an approve review when all required checks are satisfied.

How does automated PR approval work with GitHub workflows?

Automated PR approval in GitHub workflows works by fetching the pull request state, verifying that CI and required checks have passed, and then submitting an approve review command to the target PR.

Do I need the GitHub CLI to automate post-review PR approvals?

Yes, automating post-review PR approvals requires the GitHub CLI, specifically the gh pr view and gh pr review commands to fetch PR state and submit the approve review after validation.

Can I merge a pull request automatically when required checks pass?

You can streamline merging a pull request when required checks pass by automating the approval step, which submits an approve review once code quality and CI status are verified.

When should I not use automated PR approvals in my code review workflow?

You should not use automated PR approvals when code quality validation fails or required CI checks have not passed, as the process explicitly verifies these conditions before submitting an approve review.