Skip to content

feat: add request ID middleware to generated project templates#73

Merged
PAMulligan merged 2 commits intomainfrom
10-add-request-id-middleware-to-generated-project-templates
Apr 9, 2026
Merged

feat: add request ID middleware to generated project templates#73
PAMulligan merged 2 commits intomainfrom
10-add-request-id-middleware-to-generated-project-templates

Conversation

@PAMulligan
Copy link
Copy Markdown
Contributor

Summary

  • Add Hono's built-in requestId() middleware to both Cloudflare Workers and Node.js index.ts templates in setup-project.sh
  • Health endpoint now returns requestId field; X-Request-Id header included on all responses automatically
  • Health test updated with 3 test cases: status check, requestId in body, and X-Request-Id header presence

Test plan

  • bash -n scripts/setup-project.sh — shell syntax clean
  • ./scripts/setup-project.sh test-cf --cloudflare --dry-run — completes successfully
  • ./scripts/setup-project.sh test-node --node --dry-run — completes successfully
  • Generate a real project and run pnpm test to verify health tests pass

Closes #10

🤖 Generated with Claude Code

Paul Mulligan and others added 2 commits April 9, 2026 17:26
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan linked an issue Apr 9, 2026 that may be closed by this pull request
6 tasks
@github-actions github-actions bot added the area: scripts Automation scripts label Apr 9, 2026
@PAMulligan PAMulligan self-assigned this Apr 9, 2026
@PAMulligan PAMulligan moved this from Todo to Done in PMDS Open Source Roadmap Apr 9, 2026
@PAMulligan PAMulligan merged commit f7791e8 into main Apr 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: scripts Automation scripts

Projects

Development

Successfully merging this pull request may close these issues.

Add request ID middleware to generated project templates

1 participant