Closed
Add autonomous blog post generation, review, and publishing pipeline#1
Conversation
…posts Agent-Logs-Url: https://github.com/DevelopersCoffee/BrewPress/sessions/8308baea-96b1-4c03-8968-9ea6119df34b Co-authored-by: ucguy4u <[email protected]>
Copilot
AI
changed the title
[WIP] Add process for generating and publishing DevelopersCoffee blog posts
Add autonomous blog post generation, review, and publishing pipeline
Apr 4, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BrewPress needed an end-to-end pipeline to transform merged GitHub PRs into published DevelopersCoffee blog posts with a human review gate in between.
Pipeline
Changes
Scripts (
scripts/)generate_post.py— fetches PR metadata (title, body, commits, file diff) via PyGithub, calls an OpenAI-compatible model, parses structured AI output into a YAML front-matter markdown file saved toposts/drafts/publish_post.py— finds all drafts, flipsdraft: true → false, stampspublished_date, moves files toposts/published/requirements.txt—openai>=1.0.0,PyGithub>=2.0.0Workflows (
.github/workflows/)generate-blog-post.yml— triggers onpull_request: closed(merged) tomainorworkflow_dispatch(manual, acceptspr_number+ optionalsource_repo); runs generation, commits draft to ablog-draft/*branch, opens a labeled review PRpublish-blog-post.yml— triggers when ablog-draft/*PR is merged; runs publish script, commits the moved post back tomainPost format
Each draft is a markdown file with YAML front-matter:
Credential precedence
OPENAI_API_KEY→GITHUB_MODELS_TOKEN→GITHUB_TOKEN(GitHub Models endpoint fallback). Model overrideable viaAI_MODELrepository variable (default:gpt-4o).Original prompt