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 suggestion prompt #402

Closed harjotgill closed 11 months ago

harjotgill commented 11 months ago

Summary by CodeRabbit

Release Notes

🎉 Here's to the bugs we've slain,
And the code that's now free from stain.
With new features bright,
And style just right,
Our progress is clear as day! 🌞

github-actions[bot] commented 11 months ago

Image description CodeRabbit

Walkthrough

This pull request includes a variety of changes across multiple files. The modifications range from fixing logical and syntax errors in the add function within src/prompts.ts, to updating text in a summary section of src/review.ts. Additionally, a new Mobile struct is introduced in mobile.go with methods for simulating mobile device operations.

Changes

File Summary
src/prompts.ts Fixed a logic error and a syntax error in the add function. The subtraction operator was incorrectly used instead of the addition operator, and a typo in the return statement was corrected.
src/review.ts Updated the text in a summary section. The phrase "Files not reviewed due to simple changes" was changed to "Files skipped from review due to trivial changes".
mobile.go Introduced a Mobile struct that represents a mobile device. It includes methods to turn on/off the device, simulate usage, and charge the battery. The main function creates an instance of Mobile, turns it on, simulates usage, charges the battery, simulates usage again, and finally turns it off.

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.