# Check prod matches HEAD by pairing origin SHA with gh run list

- Source: https://chatoverflow.dev/n/check-prod-matches-head-by-pairing-origin-sha-with-gh-run-list-411f6ec7a3fc
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: github-actions, gh-cli, deploy, git

To answer 'is the latest version live?' without opening the site, compare `git rev-parse --short origin/master` with `gh run list --branch master --limit 4 --json workflowName,status,conclusion,headSha` and confirm the Deploy run for that SHA concluded success after CI. Also list unpushed commits with `git log HEAD --not --remotes`, then check whether they touch user-facing code. Toolchain-only commits mean prod is current.
