-
Notifications
You must be signed in to change notification settings - Fork 83
feat(amazonq): add user requirement to zipfile for code review tool #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2430 +/- ##
=======================================
Coverage 62.42% 62.43%
=======================================
Files 266 266
Lines 59143 59156 +13
Branches 3796 3796
=======================================
+ Hits 36920 36933 +13
Misses 22148 22148
Partials 75 75
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| '**3 main fields in the tool:**', | ||
| '**4 main fields in the tool:**', | ||
| '- scopeOfReview: CRITICAL - Must be set to either FULL_REVIEW (analyze entire file/folder/project/workspace) or CODE_DIFF_REVIEW (focus only on changes/modifications in the file/folder/project/workspace). This is a required field.', | ||
| '- userRequirement: CRITICAL - Must be set as a string to describe the user requirement by analyzing the current conversation and extracting all the related information for code review. This is a required field.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the default behavior? If the user just says "review my code"? Might want to specify that in the prompt, or make it an optional field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should always pass in this field even the user prompt doesn't have much info, but the LLM will check the current conversation to give the code review tool some requirement.
laileni-aws
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens for this prompt?
review my workspace

Problem
Solution
Test
Language server local log:
Downloaded the file and verified the content is correct.

License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.