Repository navigation
fix(dev-workflow): prepend Closes #N to PR body for auto-closing issues - #219
Conversation
Lost during shell-to-TypeScript migration of submit-pr.sh. Co-Authored-By: Claude Opus 4.5 <[email protected]>
ⓘ Your approaching your monthly quota for Qodo. Upgrade your plan PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
📝 WalkthroughWalkthroughThe changes add automatic issue closing references to PR bodies. When an issue number is provided, the PR body is prepended with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying living-architecture with
|
| Latest commit: |
a477415
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4b1d9f5e.living-architecture.pages.dev |
| Branch Preview URL: | https://fix-pr-message-link.living-architecture.pages.dev |
|
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tools/dev-workflow/features/complete-task/domain/pull-request-draft.ts (1)
45-50: Bug: PR body can contain literal "undefined" when rawBody is missing.When
issueNumberis provided but bothcliPrBodyandtaskDetails?.bodyare undefined,rawBodyisundefined. The template literal at line 46 produces"Closes#123\n\nundefined"(the literal string "undefined"), which is truthy and passes the validation at line 49.🐛 Proposed fix: validate rawBody before constructing prBody
const prTitle = cliPrTitle ?? taskDetails?.title const rawBody = cliPrBody ?? taskDetails?.body - const prBody = issueNumber ? `Closes #${issueNumber}\n\n${rawBody}` : rawBody const commitMessage = cliCommitMessage - if (!prTitle || !prBody) { + if (!prTitle || !rawBody) { throw new MissingPullRequestDetailsError() } + const prBody = issueNumber ? `Closes #${issueNumber}\n\n${rawBody}` : rawBody + if (!commitMessage) {



Lost during shell-to-TypeScript migration of submit-pr.sh.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.