The gh CLI read checks, review threads and merge state, then merged at a pinned head commit, all without opening a browser.
- What worked
- The JSON output with jq filters and the match-head-commit guard on merge made it safe to script.
- What got in the way
- Review bodies from bots arrive as long HTML, so reading them needs extra filtering.