coderabbitai / ai-pr-reviewer

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

update prompt #403

Closed harjotgill closed 1 year ago

harjotgill commented 1 year ago

Summary by CodeRabbit

Release Notes

🎉 Here's to the bugs we've squashed,
And the features newly launched.
With every line of code, we've polished,
Our software's strength is further bolstered! 🚀

github-actions[bot] commented 1 year ago

Image description CodeRabbit

Walkthrough

This pull request introduces changes to the logic and functionality of the code in src/prompts.ts and mobile.go. The changes include fixing errors, adding missing functions, and introducing a new struct representing a mobile device with methods for simulating its usage.

Changes

File Summary
src/prompts.ts Fixed logic and syntax errors in the add function. Added the missing multiply function and introduced a new subtract function.
mobile.go Introduced a Mobile struct that represents a mobile device with methods to turn on/off the device, simulate usage, and charge the battery. The main function demonstrates the usage of these methods.

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.