Closed harjotgill closed 11 months ago
CodeRabbit
Walkthrough: This update primarily focuses on refining the format of annotations in code hunks and handling single line comments more effectively. It introduces a new regular expression to match single line comments and updates guidelines for providing comments during code reviews.
Changes:
Files | Summary |
---|---|
src/prompts.ts , src/review.ts |
The changes include an updated annotation format in code hunks, from <line_number>: to <line_number>:<whitespace> . A new section has been added for response instructions and the expected response format is clarified. In src/review.ts , a new regular expression (lineNumberSingleRegex ) has been introduced to match single line comments. Single line comments are now handled separately, with their review stored and start and end lines set to be the same. In src/prompts.ts , lines have been modified to match the new format and guidelines for providing comments in the code review have been updated. |
Summary by CodeRabbit
Refactor:
src/review.ts
.src/prompts.ts
.