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

update prompt #407

Closed harjotgill closed 11 months ago

harjotgill commented 11 months ago

Summary by CodeRabbit

Bug fix:

New Feature:

Chore:

🎉 Here's to the bugs we've squashed, 🐛
And the features we've brought to light. 💡
With every line of code, we've washed, 🧽
Our project shines ever so bright! ✨

github-actions[bot] commented 11 months ago

Image description CodeRabbit

Walkthrough

This pull request introduces changes to the code logic and functionality across multiple files. It corrects minor issues in prompts.ts, modifies the parsePatch function in review.ts, and adds a new Mobile struct in mobile.go with methods for simulating mobile device operations.

Changes

Files Summary
src/prompts.ts, src/review.ts The changes fix a typo and indentation issue in prompts.ts. In review.ts, the parsePatch function is updated to skip line number annotations for the first 3 and last 3 lines of the new hunk and patch. A new section promoting the Pro version is added to the PR description.
mobile.go A new Mobile struct is introduced, representing a mobile device with methods to turn on/off the device, simulate usage, and charge the battery. The main function demonstrates these operations.

Notes ### Chat with Image description CodeRabbit Bot (`@coderabbitai`) - Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file. - Invite the bot into a review comment chain by tagging `@coderabbitai` in a reply. ### Code suggestions - The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned. - You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off. ### Ignoring further reviews - Type `@coderabbitai: ignore` anywhere in the PR description to ignore further reviews from the bot. ### Support us :) If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai)! The Pro version has advanced context and several proprietary improvements compared to the open source version.