Skip to content

Fix dev.to 422 and publish workflow picking the wrong draft - #37

Merged
PriyeshDave merged 1 commit into
mainfrom
fix/devto-422-and-draft-selection
Nov 9, 2026
Merged

PriyeshDave merged 1 commit into
mainfrom
fix/devto-422-and-draft-selection

Conversation

@PriyeshDave

Copy link
Copy Markdown
Owner

What broke

Changes

  • publish.yml: select the draft from git diff base..merge of the PR (errors if >1 draft); add workflow_dispatch with draft_path for 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-draft label).


Generated by Claude Code

- 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
@PriyeshDave
PriyeshDave merged commit 3759b4d into main Nov 9, 2026
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