Skip to content

Harden blog author avatar resolution and add CI audit#137

Merged
vibemarketerpromax merged 1 commit intomainfrom
codex/blog-author-image-rca
Mar 3, 2026
Merged

Harden blog author avatar resolution and add CI audit#137
vibemarketerpromax merged 1 commit intomainfrom
codex/blog-author-image-rca

Conversation

@vibemarketerpromax
Copy link
Collaborator

@vibemarketerpromax vibemarketerpromax commented Mar 3, 2026

Summary

  • improve Notion author image extraction with robust property matching (case-insensitive + fuzzy keys)
  • support author image URL extraction from files/url/rich_text properties
  • add fallback to Notion Author people avatar_url when explicit author image field is missing
  • add richer diagnostics for author image cache/download failures with slug + author + source context
  • add authors:audit script to validate published Notion posts have author images (explicit or people avatar)
  • wire authors:audit into CI after build to catch missing avatars before merge

Files

  • lib/notion-blog.ts
  • lib/notion-image-cache.ts
  • scripts/audit-author-avatars.mjs
  • package.json
  • .github/workflows/ci.yml

Validation

  • npm run typecheck
  • npm run lint (existing warnings only)
  • npm run build
  • npm run authors:audit (skips without NOTION_TOKEN locally; enforced in CI with secret)

@vibemarketerpromax vibemarketerpromax merged commit 0e3b6f5 into main Mar 3, 2026
5 checks passed
@vibemarketerpromax vibemarketerpromax deleted the codex/blog-author-image-rca branch March 3, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant