feat: add Dev.to integration (devtoCreateArticle, devtoUpdateArticle, devtoGetArticles)#44
Closed
DheerajShrivastav wants to merge 1 commit into
Closed
Conversation
Closes wespreadjam#34 - Add devtoCreateArticle, devtoUpdateArticle, devtoGetArticles nodes - Add devto API key credential definition - Add devto to NodeCredentials type in core - Normalize API responses to minimal camelCase output shape - Support full Markdown via bodyMarkdown field - Support series and canonicalUrl in create article - devtoGetArticles defaults to authenticated user's articles (/articles/me) when username is omitted, uses /articles?username=... otherwise - published defaults to false (draft) to avoid accidental publishing - Pagination via page and perPage query params - Use fetchWithRetry for all API calls - 27 unit tests covering schemas, request shaping, normalization, and error cases - Wire up NODE_CREDENTIAL_REQUIREMENTS with DEVTO_API_KEY env var Co-Authored-By: Claude <noreply@anthropic.com>
5 tasks
Contributor
|
Merged in commit f4bf39d. Thank you for the comprehensive Dev.to integration with 27 tests! 🎉 |
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
Implements the Dev.to integration requested in #34.
devtoCreateArticle,devtoUpdateArticle,devtoGetArticlesdevto) withapi-keyheader authdevtoGetArticlesfalls back to/articles/me(authenticated user) whenusernameis omittedpublisheddefaults tofalseto prevent accidental publishingbodyMarkdown;seriesandcanonicalUrlalso supported on createpage/perPagequery paramsfetchWithRetryTest plan
npm run build --workspace=packages/nodes— clean buildnpm run test --workspace=packages/nodes— 35 tests pass (27 Dev.to + 8 Discord)pnpm test— 27 built-in nodes registered including all 3 devto nodesdevto_create_articletested via playground CLI — draft created successfullydevto_get_articlestested via playground CLI — returns authenticated user's articlesdevto_update_articletested via playground CLI — article updated/publishedCloses #34