merge-pr

Merge GitHub pull requests with commit squashing and CI checks.

421|49|Updated Jul 3, 2014
One-click install
npx skills add https://github.com/joshukraine/dotfiles --skill merge-pr-joshukraine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-pr
Source: https://github.com/joshukraine/dotfiles/tree/main/claude/.claude/skills/merge-pr
Command: npx skills add https://github.com/joshukraine/dotfiles --skill merge-pr-joshukraine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, and includes scripts (resource) components.

What problem does it solve?

The merge-pr Skill resolves the challenges associated with pulling a code PR into a development or production branch safely, efficiently, and cleanly, by checking CI, ensuring conflicts, squashing the history, and handling cleanup.

Core Features & Use Cases

  • Pull Request Merger: Squashes the commit history, merging code cleanly while keeping branch histories consistent.
  • Automated Checkups: Runs CI checks, conflicts check, and review feedback checks to ensure a smooth merge.
  • Branch Management: Deletes or cleans up the branch after merge for branch maintenance.
  • Use Case: Merging a PR into a development branch without any conflicts, with all necessary checks and automated steps handled.

Quick Start

Run 'merge-pr #123' to automatically merge the PR #123.

Frequently Asked Questions about merge-pr

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

FAQPage Schema
How do I safely merge a GitHub pull request with squashing and branch cleanup?

To safely merge a pull request, this Skill systematically squashes the commit history, verifies CI status checks, analyzes review feedback, and automatically deletes the branch after merging. It ensures code integration into development or production branches is clean and conflict-free.

What is the best way to automate GitHub PR checks and conflict verification before merging?

Automating GitHub PR checks involves running CI status verifications, conflict checks, and review feedback analysis. This Skill handles these automated checkups to ensure a smooth merge process, keeping branch histories consistent without manual intervention.

Does merging a pull request with git require separate tools for branch management?

Merging a pull request with git does not require separate tools for branch management if you use this Skill. It automates branch cleanup and deletion after merging, relying only on the gh and git command line dependencies to manage the workflow.

How do I squash commits when merging a GitHub pull request into a development branch?

Squashing commits when merging a GitHub pull request is handled automatically by this Skill. It systematically squashes the commit history to merge code cleanly into your development branch while ensuring all CI checks pass and no conflicts exist.

Can I use gh and git to automate the entire pull request merge process?

Yes, you can use gh and git to automate the pull request merge process. This Skill utilizes both dependencies to execute a systematic merge workflow, including squashing, CI verification, conflict checking, and branch cleanup.