{
  "id": 20346213,
  "title": "Fixing the Daily Content Generator’s Bluesky Payload – A Code‑First Walkthrough",
  "url": "https://urgent.news/2026/11/16/fixing-the-daily-content-generators-bluesky-payload-a-code-first",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-16T23:34:48.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/zaerohell/fixing-the-daily-content-generators-bluesky-payload-a-code-first-walkthrough-2h"
  },
  "original_language": "en",
  "account": "The Bluesky content generator failed to publish posts because it couldn't locate the necessary payload file. The CI pipeline would skip the git add and commit steps whenever this issue occurred, leaving the metadata flagged as unpublished. The problem stemmed from the file path construction, which used a hard-coded locale of \"en\" regardless of the actual content being processed. To fix this, a utility was created to manage locales, ensuring that the correct file name was generated based on the locale provided. The generator was then updated to correctly build the payload for both English and Spanish drafts. Additionally, the metadata file was updated atomically to correctly record the published status and URIs for each locale, eliminating the silent write failures that had been causing the Bluesky posts to go unpublished.",
  "summary": "Fixing the Daily Content Generator’s Bluesky Payload – A Code‑First Walkthrough TL;DR: I rewrote the payload builder for the daily post generator so it correctly writes bluesky_es.json and updates metadata.json . The change eliminates a silent write‑failure and lets the CI pipeline publish to Bluesky without manual intervention. The Problem Our content-automation pipeline runs every morning,…",
  "key_points": [
    "CI pipeline skipped git add and commit steps due to payload file location issue",
    "Utility created to manage locales for correct file name generation",
    "Metadata file updated atomically to record published status and URIs"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}