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 prompts #409

Closed harjotgill closed 11 months ago

harjotgill commented 11 months ago

Summary by CodeRabbit

New Feature:

Documentation:

🎉 Here's to the code that grows, 🌱 With each pull request, it shows. 📜 A mobile struct, now we've got, 📱 And better review prompts, hot off the pot! 🔥 Celebrate the changes, big and small, 🎊 For every line of code, stands tall. 🏙️

github-actions[bot] commented 11 months ago

Image description CodeRabbit

Walkthrough: This update introduces a new Mobile struct in the mobile.go file, simulating basic mobile device operations. It also refines the instructions for providing code replacement suggestions during code reviews in the src/prompts.ts file.

Changes:

File Summary
src/prompts.ts The instructions for providing code replacement suggestions have been updated. Now, suggestions can be provided using fenced code blocks with the suggestion or diff language identifier/format. The line number range must be specified accurately to indicate the exact lines that need to be replaced.
mobile.go A new Mobile struct has been 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.