feat(marketing/channels): Dev.to adapter#435
Merged
Merged
Conversation
Follow-up to channel-adapters. Extends Draft with optional DraftArticle (title, tags, canonicalUrl, description) — usable by Dev.to v1 and LinkedIn long-form later. Single API key auth, single POST endpoint, real metrics() (Dev.to read API is free). Direct syndication of blog posts with canonical_url set to cacheplane.ai/blog. Publishes immediately (Cowork is the human gate). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 tasks across 5 phases: extend Draft with DraftArticle, add Dev.to validation rules (TDD), implement post() and metrics() with msw mocks, DevToAdapter class, wire registry, extend smoke script, README + MANUAL-SMOKE updates, build/test verification, PR (stacked on #425). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
Live smoke ✅Ran {
"channel": "devto",
"postId": "3695562",
"url": "https://dev.to/blove/marketing-pipeline-smoke-test-2026-05-18t195042132z-46gl",
"postedAt": "2026-05-18T19:50:42Z"
}
Metrics: {
"postId": "3695562",
"impressions": 0,
"replies": 0,
"shares": 0,
"fetchedAt": "2026-05-18T19:50:47.715Z"
}Both |
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.
Summary
Follow-up to PR #425 (X channel adapter). Implements the Dev.to adapter behind the same
ChannelAdapterinterface.Changes:
Draftwith optionalarticle: DraftArticle(title, tags, canonicalUrl, description). Future LinkedIn long-form posts will reuse this shape.DevToAdapterclass: single API key auth (DEVTO_API_KEY), single POST endpoint, realmetrics()(Dev.to's read API is free).post()publishes immediately (published: true) — Cowork approval is the human gate.metrics()maps Dev.to fields → `PostMetrics` (impressions, replies, shares; clicks unavailable).Tests: 60/60 across 7 spec files (33 X + 27 Dev.to). All msw-mocked.
Build artifacts:
Known follow-up (not blocking this PR):
Manual smoke required before merge:
Spec: `docs/superpowers/specs/marketing/2026-05-17-channel-adapter-devto-design.md`
Plan: `docs/superpowers/plans/marketing/2026-05-17-channel-adapter-devto.md`
Test plan
🤖 Generated with Claude Code