gh:pr-merge-emergency

Emergency-merge a GitHub PR with admin override and audit trail.

Updated May 31, 2025
One-click install
npx skills add https://github.com/dEitY719/dotfiles --skill gh-pr-merge-emergency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh:pr-merge-emergency
Source: https://github.com/dEitY719/dotfiles/tree/main/claude/skills/gh-pr-merge-emergency
Command: npx skills add https://github.com/dEitY719/dotfiles --skill gh-pr-merge-emergency

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Emergency-merge of a GitHub PR by bypassing the normal approval process in urgent scenarios, while creating an auditable trail for accountability.

Core Features & Use Cases

  • Validates PR state (open, not a draft, no conflicts) and ensures required CI checks are green before proceeding.
  • Posts an audit comment on the PR, executes an admin merge with squash and delete-branch, creates a follow-up incident issue, and reports the result.
  • Widens adoption to production incidents, weekend hotfixes, or security patches when reviewers are unavailable or time is critical.

Quick Start

Run the skill to emergency-merge a PR with admin override and an audit trail.

Frequently Asked Questions about gh:pr-merge-emergency

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

FAQPage Schema
How do I merge a GitHub PR by bypassing branch protection during a production incident?

To merge a GitHub PR by bypassing branch protection, the admin override validates the PR is open, not a draft, and has passing CI checks. It then posts an audit comment, performs a squash merge, deletes the branch, and creates an incident issue for accountability.

Can I emergency-merge a GitHub draft PR or one with merge conflicts?

No, you cannot emergency-merge a draft PR or one with merge conflicts. The override requires the PR to be fully open, not a draft, and free of conflicts before executing the admin merge to ensure production stability.

What audit trail is created when I force a GitHub PR merge without reviewer approval?

Forcing a GitHub PR merge without approval creates an audit trail by posting an audit comment on the PR and generating a follow-up incident issue. It also syncs project status to maintain accountability for the emergency action.

Does an emergency GitHub PR merge still require CI checks to pass?

Yes, an emergency GitHub PR merge still requires CI checks to pass. The admin override bypasses the approval requirement but explicitly validates that required CI checks are green before proceeding with the merge.

When should I use an emergency admin merge for a GitHub hotfix?

Use an emergency admin merge for a GitHub hotfix when an urgent incident requires immediate action and a reviewer is unavailable. It enforces a substantive reason requirement to ensure the override is justified for critical situations like security patches.

What happens to the branch after an emergency merge on GitHub?

After an emergency merge on GitHub, the branch is automatically deleted. The process uses a squash merge strategy and removes the source branch while creating post-merge audit artifacts like an incident issue.