Repository navigation
Fix dev.to 422 and publish workflow picking the wrong draft - #37
Merged
Merged
Conversation
- publish.yml: pick the draft the merged PR actually added/changed instead of `ls -t` (all files share one mtime on a fresh checkout, so an arbitrary draft was published). Add workflow_dispatch with a draft_path input for manual re-runs. Skip the commit step when there is nothing to publish. - devto_publish.py: fail early with a clear message when a draft has no frontmatter title; surface dev.to's error body on 4xx. - blogmind-medium-post.md: move title/subtitle into YAML frontmatter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wd36GnTiTuBTpbteZ4P5QC
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.
What broke
publish.ymlchose the draft withls -t content/drafts/*.md | head -1. On a fresh checkout every file has the same mtime, so it picks an arbitrary file. PR Draft: Live Strategy Blueprints: Architecting Modular Reasoning in Meta-Agentic LLM Systems #34 merged Live Strategy Blueprints but the job triedblogmind-medium-post.md; PR Draft: Most Agent Memory Architectures Are Token Sinkholes: Evidence from Head-to-Head Benchmarks #33 merged Most agent memory architectures are token sinkholes but the Oct-11 Safety rules post was published instead.blogmind-medium-post.mdhad no YAML frontmatter, sotitlewasNone.Changes
publish.yml: select the draft fromgit diff base..mergeof the PR (errors if >1 draft); addworkflow_dispatchwithdraft_pathfor manual re-runs; skip the commit step when nothing was published.devto_publish.py: fail early on a missing title; include dev.to's response body in 4xx errors.blogmind-medium-post.md: title/subtitle moved into frontmatter.Merging this PR will not publish anything (no
blog-draftlabel).Generated by Claude Code