github-pr-merge

Validate GitHub pull requests and merge them after checks pass.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Bae-ChangHyun/cc-plugins-bch --skill github-pr-merge-bae-changhyun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-pr-merge
Source: https://github.com/Bae-ChangHyun/cc-plugins-bch/tree/main/plugins/gitwf/skills/github-pr-merge
Command: npx skills add https://github.com/Bae-ChangHyun/cc-plugins-bch --skill github-pr-merge-bae-changhyun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents unsafe or premature merges by enforcing a full pre-merge validation workflow (tests, lint, CI, and review comment resolution) and requiring explicit user confirmation before merging and cleaning up branches.

Core Features & Use Cases

  • Pre-merge validation: Runs tests, linting, and CI checks and inspects review comments to ensure there are no unreplied threads before merging.
  • Safe merge execution: Performs merge commits using the gh CLI, deletes the remote feature branch, and performs local cleanup steps to keep main branches tidy.
  • Use Case: When a maintainer is ready to finalize a feature PR, use this Skill to verify all checks, confirm with the user, merge with a concise message format, and remove the feature branch.

Quick Start

Use the github-pr-merge skill to validate tests, lint, CI, and comment resolution and then confirm to perform a merge commit and delete the feature branch.

Frequently Asked Questions about github-pr-merge

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

FAQPage Schema
How do I safely merge a GitHub pull request only after all CI checks pass?▼

To safely merge a GitHub pull request, you need a pre-merge workflow that runs tests, linting, and CI checks, inspects review comments for unresolved threads, and requires explicit user confirmation before executing the merge. This prevents unsafe or premature merges.

How do I enforce review comment resolution before merging a pull request?▼

Enforcing review comment resolution before merging a pull request involves inspecting review threads to ensure there are no unreplied comments, alongside running full pre-merge validations like tests and linting, prior to executing the merge.

Can I use gh CLI to merge commits and delete the remote feature branch automatically?▼

Yes, you can use the gh CLI to perform safe merge execution by creating merge commits and deleting the remote feature branch, followed by local cleanup steps to keep the main branches tidy after the pull request is finalized.

What prerequisites do I need to automate pull request merges with pre-merge checks?▼

To automate pull request merges with pre-merge checks, you need repository merge permissions, the gh CLI installed for command-line operations, and explicit user confirmation to authorize the final merge and branch deletion.

Does merging a GitHub pull request work without local cleanup steps?▼

Merging a GitHub pull request can work without local cleanup, but performing local cleanup steps after deleting the remote feature branch is necessary to keep main branches tidy and prevent stale branch accumulation.

Why should I use a pre-merge validation workflow for GitHub pull requests?▼

You should use a pre-merge validation workflow for GitHub pull requests to prevent unsafe merges by enforcing tests, linting, CI checks, and review comment resolution before allowing a merge commit to be executed.