Ai Summarize my Code Review: non-descriptive error is shown when you use it without starting a Review
Summary
If you use the Ai Action: Summarize my code review and you don't have any pending comments, an error is shown but it isn't very descriptive.
AI features are not enabled or resource is not permitted to be sent.
Steps to reproduce
- Go to an MR
- Ensure you don't have any pending comments
- Click the
Ai Action: Summarize my code review
in the markdown editor - See error pop up
Example Project
Any MR:
Example: !121683 (merged)
What is the current bug behavior?
- Either the/an error/warning message describes properly that "You don't have an ongoing review."
OR (better yet, maybe)
- The Ai Action is only displayed if a review is created or in the final comment box when submitting a review.