Enhance PR reviews by querying AI with your questions.
- Select the lines you want to leave a comment on.
- Start your review comment with
$ai
(e.g.$ai rewrite this function list comprehensions
).
When triggered, this action queries the OpenAI's chat completions API with the following prompt and replies to the comment with the response:
{your comment}
```
{selected lines}
```
See example.yaml