Running It · Chapter 1 of 3 · 3 min
Before and After Every Merge
The full checklist this site follows for every change, short enough to use every time, with the reason behind each line.
Why a checklist
Most production problems are not clever. They are a forgotten step on a busy day. A checklist turns the steps into routine, so attention is free for the parts that need thought. Keep it short enough to follow every time; a checklist that is skipped protects nothing.
Before you start
- On a branch, not on main.
git branch --show-currentsaysfeature/...,improve/...orfix/.... - Branch is fresh. Started from the latest
main, so you are not fixing yesterday's code. - Know what "done" means. One sentence in the pull request: what changes, for whom.
Before you push
- Syntax check anything you edited in a script:
node -c file.js. - Targeted tests first, then the whole suite:
npm test. Under ten seconds; no excuse to skip. - Docs check if you touched
docs/:npm run check:docs. - Stage by name.
git status, thengit addthe files you mean. Nevergit add -A. - No secrets, no clutter. The diff holds no
.env, no keys, no backups, no downloads.
The pull request
- Description says what changed, how it was tested, and what is left.
- Read the full diff on GitHub once. It is the best moment to catch a stray file.
- Tests workflow is green. Merge only on green.
Right after the merge
- Deploy landed. The live commit matches the merge commit within a few minutes (see Knowing What Is Live). If it does not after fifteen minutes, open the build history.
- Look at what you changed. Open the pages your change touched, on a phone as well as a laptop.
- Speed run is normal. The Lighthouse run after the deploy shows no step down at the new deploy line.
- No new errors. A quick look at the error log for the service.
Within a day
- Health history is clean. No new blockers in the next few health runs.
- Tasks updated. The task that asked for the change is closed, with the PR linked.
If anything is wrong
- Is it hurting visitors now? Roll back first (see Rolling Back), think second.
- Did the change touch data? If yes, stop the cause before deciding anything else.
- Fix forward through a normal branch and pull request, with a test that reproduces the problem.
The checklist on one screen
| Stage | Check |
|---|---|
| Start | Branch, fresh from main, clear goal |
| Before push | node -c, targeted tests, npm test, docs check, stage by name, no secrets |
| Pull request | Description, read the diff, green tests |
| After merge | Live commit matches, pages look right, speed normal, no new errors |
| Next day | Health clean, task closed |
Try it yourself
Print this list, or paste it into the template for your pull requests. Use it for every change for two weeks, then cross out any line that never caught anything and add any step you found yourself doing by hand.