coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.42k stars 261 forks source link

prompt updates #412

Closed harjotgill closed 11 months ago

harjotgill commented 11 months ago

Summary by CodeRabbit

### Refactor:
- Removed a section of code related to notes in `src/review.ts`.
- Added a new section with tips in `src/review.ts`.
- Modified the `sanitizeComment` function to handle different types of code blocks.

---

> ๐ŸŽ‰ Code's been refactored, it's no jest,
> 
> With tips and tricks, it's now the best.
> 
> Sanitize comments, keep them clean,
> 
> In our codebase, no mess to be seen! ๐Ÿงน๐ŸŒŸ
github-actions[bot] commented 11 months ago

Image description CodeRabbit

Walkthrough

The changeset primarily focuses on enhancing the user experience by replacing a section related to notes with a more informative tips section. Additionally, it improves the sanitizeComment function to handle various types of code blocks, ensuring better data sanitization and security.

Changes

File Summary
src/review.ts The diff removes a section of code related to notes and introduces a new section with tips. It also refines the sanitizeComment function to manage different types of code blocks without altering the existing logic or functionality.