om-approve-merge-pr

Approves and squash-merges a pull request after enforcing label and QA gates.

2.6k|159|Updated Mar 8, 2021
One-click install
npx skills add https://github.com/go-musicfox/go-musicfox --skill om-approve-merge-pr-go-musicfox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: om-approve-merge-pr
Source: https://github.com/go-musicfox/go-musicfox/tree/main/.agents/skills/om-approve-merge-pr
Command: npx skills add https://github.com/go-musicfox/go-musicfox --skill om-approve-merge-pr-go-musicfox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Merging a pull request safely requires checking review state, CI status, labels, and QA sign-off before clicking merge, and doing this by hand is error-prone. This Skill automates the approve-and-merge flow for a single PR while refusing to merge past hard blocks like qa-failed, do-not-merge, or an unsatisfied QA gate. ## Core Features & Use Cases - Gate-checked merging: Submits an approving review and squash-merges a PR only after validating state, draft status, conflicts, blocking labels, and the QA gate (needs-qa requires qa-approved). - Fixable-blocker routing: When CI fails or conflicts exist, it routes to the om-auto-fix-pr skill (--ci-only for failing checks, full loop for conflicts or review feedback) instead of dead-ending. - Optional follow-up issues: Files a follow-up issue after a successful merge, either from free-text asks or by handing off a PR/comment link to om-followup-issue-from-pr. - Use Case: A reviewer says "approve and merge PR 2805 with follow-up: extract the data-scoping check into a shared helper" — the Skill verifies gates, approves, squash-merges, and files the follow-up issue assigned to the PR author. ## Quick Start Ask the agent to approve and merge PR 2805, optionally adding a follow-up note to file as an issue after the merge.

Frequently Asked Questions about om-approve-merge-pr

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

FAQPage Schema
How do I approve and merge a pull request from the command line?

Provide the PR number and the Skill submits an approving review via the tracker's review-pr operation, then squash-merges via merge-pr. It first checks the PR state, draft status, mergeability, labels, and QA gate before merging.

What happens when a PR has failing CI checks before merging?

The merge is not forced. The Skill reports the mergeStateStatus and offers to route to om-auto-fix-pr with the --ci-only flag, which fixes failing checks and hands back for merging once the PR is green.

Can a PR be merged when it has a needs-qa label but no qa-approved label?

No, when the QA gate is enabled the merge is refused. The gate is satisfied by a QA reviewer applying qa-approved, by the evidenced self-QA exception applying qa-approved plus qa-self-verified, or by applying skip-qa for genuinely low-risk changes.

Which labels block a pull request from being merged?

The labels qa-failed, do-not-merge, and blocked are hard blocks that always refuse the merge. An active qa pipeline label also stops the merge because manual QA is in progress, and changes-requested requires user confirmation before proceeding.

Can I file a follow-up issue at the same time as merging a PR?

Yes, provide a free-text follow-up alongside the merge request and the Skill creates the issue after the merge succeeds, linking the PR and assigning the @-mentioned user or the PR author. A pasted PR or comment link is handed off to the om-followup-issue-from-pr skill.