-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: correct regex trailing whitespace and add missing projectRoot param #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add \s* to parseTasksFile regex to handle trailing whitespace in task lines - Add missing projectRoot argument to resolveSchema call in generateApplyInstructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughUpdated task parsing regex in workflow instructions to handle trailing whitespace at line endings. Modified the apply-instruction schema lookup to pass the projectRoot parameter to resolveSchema, enabling schema resolution with project context awareness. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Greptile OverviewGreptile SummaryFixed two issues in the workflow instructions module: updated the task parsing regex to properly handle trailing whitespace in task lines, and added the missing
Both changes are focused bug fixes that improve robustness without altering functionality. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant applyInstructionsCommand
participant generateApplyInstructions
participant resolveSchema
participant parseTasksFile
participant TaskFile as tasks.md
User->>applyInstructionsCommand: Request apply instructions
applyInstructionsCommand->>generateApplyInstructions: Call with projectRoot, changeName
generateApplyInstructions->>resolveSchema: Call with schemaName, projectRoot
Note over resolveSchema: FIX: Now receives projectRoot parameter<br/>for project-local schema resolution
resolveSchema-->>generateApplyInstructions: Return schema config
generateApplyInstructions->>TaskFile: Read tracking file (if exists)
TaskFile-->>generateApplyInstructions: Return file content
generateApplyInstructions->>parseTasksFile: Parse task content
Note over parseTasksFile: FIX: Regex now handles trailing<br/>whitespace with \s*$ pattern
parseTasksFile-->>generateApplyInstructions: Return parsed tasks
generateApplyInstructions-->>applyInstructionsCommand: Return ApplyInstructions
applyInstructionsCommand-->>User: Display instructions
|
TabishB
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix 🫶
Summary
\s*toparseTasksFileregex to handle trailing whitespace in task linesprojectRootargument toresolveSchemacall ingenerateApplyInstructionsTest plan
generateApplyInstructionscorrectly resolves schema with project rootSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.