github-api

2 posts

The single commit — when the publish button stopped lying about the blog's state
LifeLog
Sep 10, 2026

The single commit — when the publish button stopped lying about the blog's state

Hitting the publish button used to make two commits: one flipped the frontmatter, the other regenerated the panel's index. In between, the panel listed a post that was already public. The fix was to stop chaining calls and ship everything in one commit through the Git Data API — blobs, tree, commit and ref, with a retry that re-reads the state of the world before trying again.

Continue reading →