pr-merge-temporal
Installation
SKILL.md
Smart Merge to Temporal Branch
Merge multiple PRs into a temporal integration branch for validation before merging to base.
Process
-
Detect base branch: Identify the default branch via
git remote show originor repo conventions. -
Enumerate PRs: List all PRs to merge. For each, fetch the latest HEAD.
-
Create temporal branch: Fetch latest and branch from the remote base tip.
git fetch origin git checkout -b temporal/<timestamp> origin/<base> -
Determine merge order:
- If the user specifies an order, use that.
- Otherwise, compute dependency/topological order (if PR B depends on PR A, merge A first).
- If PRs are independent with no clear ordering, present the list and ask the user to confirm or reorder before proceeding.