hkHarness Kit
PluginsDevOps

merge-pr

Using a coding agent? Install the Harness Kit docs as a skill:
npx skills add https://github.com/harnessprotocol/harness-kit --skill harness-docs

View in Marketplace → for install tracking, related plugins, and profiles.

merge-pr

Merge a ready PR — verify CI, sync with base, confirm, squash merge, and clean up.

Requirements

  • Claude Code — required
  • gh CLI (GitHub CLI) — required for CI status checks and merging. GH_TOKEN declared as required in plugin.json — see Secrets Management for setup.

Install

/plugin marketplace add harnessprotocol/harness-kit
/plugin install merge-pr@harness-kit

What It Does

When you invoke /merge-pr:

  1. Identifies the open PR on the current branch (or accepts a PR number)
  2. Verifies CI is passing and no CHANGES_REQUESTED reviews are outstanding
  3. Syncs with the base branch — rebases if it's fallen behind, re-verifies CI
  4. Confirms with you before merging
  5. Squash merges, deletes the remote branch, and syncs your local checkout

Usage

/merge-pr

Or use natural language:

Merge this PR.
Squash merge and clean up.
Merge it.

Pipeline

Development ─→ /open-pr ─→ /merge-pr ─→ /deploy-preview ─→ /go-live
                              ▲ you are here

Notes

  • Works on any open PR — does not require /open-pr to have created it
  • Does NOT deploy to any environment — use /deploy-preview or /go-live after merging
  • Pairs naturally with open-pr — use /open-pr first, then /merge-pr when it's ready to land

Source Files

On this page