A local CI gate and merge queue for solo developers. ship check runs your checks on your own machine and posts the GitHub commit status local-ci. ship land checks a pull request against the main it merges onto, merges it, deploys it and waits until it is live.
Pull request CI is billed by the minute, and a laptop is fast and already paid for. But a green status posted on your word alone proves little.
ship runs the checks itself, in a fresh worktree, on the pull request merged with current main, and only then posts local-ci, which branch protection can require. The config is read from main, so a pull request cannot weaken its own gate, and ship merge refuses a local-ci that a bot posted.
Many pull requests at once, for example from coding agents, bring a second problem: two pull requests that are each green can break main together. ship land lines them up per repository and checks each against the main it is merged onto, so what was checked is what lands. One command per pull request; the exit code says what to do next.
Compare basecamp/gh-signoff: that tool records your sign-off, ship runs the check.
One developer, or a few working from one machine, running many pull requests, often through coding agents. Not for a team that needs shared runners or several operating systems in the matrix. ship is young and run daily by its author.
$ ship check
▸ acme/app PR #42 add-export @ 3f2a1b9 (vs main@52d4c19)
▸ groups: app (heavy lane)
… waiting for the heavy lane (2nd in line): acme/app PR #40 since 14/11, 17:21
✓ app: npm ci (14s)
✓ app: npm test (1m32s)
✓ local-ci success: app · vs main@52d4c19 · 3m47s
$ ship land --pr 42
▸ acme/app PR #42 add-export @ 3f2a1b9: landing
✓ local-ci success: app · vs main@52d4c19 · 3m47s
▸ PR #42 merged as 8c1d0e2; waiting until it is live (app)
▸ deploying acme/app main@8c1d0e2 (the land line has been quiet for 120 s), detached
✓ PR #42 is live (merged as 8c1d0e2): app at 8c1d0e2
Exit codes: 0 live · 1 a check failed · 2 refused, nothing merged · 3 merged but not live · 4 error before the merge · 5 merge outcome unknown.
When a repository configures overflow and the heavy lane's line is long, a check can run on GitHub Actions or Cloudflare Workers Builds instead of waiting:
▸ running on GitHub instead (812 of 3000 minutes used, 1500 kept free)
git clone https://github.com/runnel/ship ~/Code/ship
cd ~/Code/ship && npm link # puts `ship` on PATHRequires Node >= 24, git and an authenticated gh.
ship keeps its own bare clone of the repository under ~/.ship/mirrors and clones
https://github.com/<repo>.git over HTTPS, whatever your local remote says. For a private
repository git needs credentials for that: run gh auth setup-git once.
Add ship.config.mjs at the repository root. ship reads it from the main branch, so the pull request that adds it is checked with its own copy.
export default {
repo: 'acme/app',
docsOnly: ['*.md', 'docs/**'], // a diff entirely inside these passes instantly
checks: [
{
name: 'app',
lane: 'heavy', // one heavy check at a time on this machine
paths: ['src/**', 'package*.json'],
install: 'npm ci',
steps: ['npm test'],
},
],
};Then require the status on main. This call replaces the branch's whole protection: read the
current settings first (gh api repos/acme/app/branches/main/protection) and carry them over.
gh api -X PUT repos/acme/app/branches/main/protection --input - <<'EOF'
{ "required_status_checks": { "strict": false, "checks": [{ "context": "local-ci" }] },
"enforce_admins": false, "required_pull_request_reviews": null, "restrictions": null }
EOFAll options are in Configure a repository.
ship land --pr 42 # check, merge and deploy through the serial line; ends when it is live
ship check --pr 42 # check only: early feedback (without --pr: the current branch's PR)
ship queue # who holds each lane and each land line, who waits, and for how long
ship status # what is liveship merge and ship deploy do one step by hand: merge a checked pull request, deploy main. A check can overflow to GitHub Actions or Cloudflare Workers Builds when the line for the heavy lane is long (Overflow). Deploys go to Cloudflare Workers (Deploy, Applying migrations).
- Configure a repository: the config file, what a step sees, branch protection.
- Checks and merge: how
ship checkruns, lanes andship queue,ship land,ship merge. - Overflow: GitHub Actions and Cloudflare Workers Builds.
- Deploy:
ship deploy, the deploysship landstarts,ship status, adopting, holds, rollbacks. - Applying migrations:
ship migrations applyandplan. - Contributing: the tests and the leak guard, for working on ship itself.
- Changelog.
MIT