Skip to content

Automation/blog pipeline#718

Open
nora-weisser wants to merge 9 commits into
Women-Coding-Community:mainfrom
nora-weisser:automation/blog-pipeline
Open

Automation/blog pipeline#718
nora-weisser wants to merge 9 commits into
Women-Coding-Community:mainfrom
nora-weisser:automation/blog-pipeline

Conversation

@nora-weisser

@nora-weisser nora-weisser commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

A daily (and manually-triggerable) GitHub Action that turns reviewed blog submissions into draft PRs.
The initial PR was opened before by Silke, I improved it.

What it does

  • Reads the Form Responses sheet and publishes rows marked isReviewedandApproved but not yet isPublished
  • Exports each Google Doc → sanitized HTML post, downloads the cover image (falls back to default), then opens a PR for human review
  • Writes isPublished=TRUE back to the sheet so nothing is published twice — the sheet is the single source of truth

Key changes

  • publish_reviewed_blogs.py — orchestrator; blog_exporter.py — Doc→post + image; blog_info_from_spreadsheet.py — sheet read/write
  • HTML sanitized against an allowlist (bleach); filename slugs and YAML front matter hardened
  • Robust to missing images / inaccessible Docs (skips cleanly)
  • Workflow runs only on the org repo; service-account key injected from a secret and never committed

It was tested locally, it is not possible to test when it is in PR only when merged.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • I checked and followed the contributor guide
  • I have tested my changes locally.
  • I have added a screenshot from the website after I tested it locally

@nora-weisser nora-weisser marked this pull request as ready for review June 25, 2026 12:34
@nora-weisser nora-weisser requested a review from a team as a code owner June 25, 2026 12:34
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.

2 participants