Skip to content

feat: add Dev.to integration (devtoCreateArticle, devtoUpdateArticle, devtoGetArticles)#44

Closed
DheerajShrivastav wants to merge 1 commit into
wespreadjam:mainfrom
DheerajShrivastav:feat/devto-integration
Closed

feat: add Dev.to integration (devtoCreateArticle, devtoUpdateArticle, devtoGetArticles)#44
DheerajShrivastav wants to merge 1 commit into
wespreadjam:mainfrom
DheerajShrivastav:feat/devto-integration

Conversation

@DheerajShrivastav
Copy link
Copy Markdown
Contributor

Summary

Implements the Dev.to integration requested in #34.

  • 3 new nodes: devtoCreateArticle, devtoUpdateArticle, devtoGetArticles
  • API key credential (devto) with api-key header auth
  • Normalized article output shape (camelCase, flattened) consistent across all 3 nodes
  • devtoGetArticles falls back to /articles/me (authenticated user) when username is omitted
  • published defaults to false to prevent accidental publishing
  • Full Markdown support via bodyMarkdown; series and canonicalUrl also supported on create
  • Pagination via page / perPage query params
  • All HTTP calls use fetchWithRetry

Test plan

  • npm run build --workspace=packages/nodes — clean build
  • npm run test --workspace=packages/nodes — 35 tests pass (27 Dev.to + 8 Discord)
  • pnpm test — 27 built-in nodes registered including all 3 devto nodes
  • devto_create_article tested via playground CLI — draft created successfully
  • devto_get_articles tested via playground CLI — returns authenticated user's articles
  • devto_update_article tested via playground CLI — article updated/published

Closes #34

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>
@MAlshaik
Copy link
Copy Markdown
Contributor

MAlshaik commented Mar 3, 2026

Merged in commit f4bf39d. Thank you for the comprehensive Dev.to integration with 27 tests! 🎉

@MAlshaik MAlshaik closed this Mar 3, 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.

[Integration] Dev.to - Developer blogging

2 participants