Ask AI
Enhance PR reviews by querying AI with your questions.
Usage
- Select the lines you want to leave a comment on.
- Start your review comment with
$ai
(e.g.$ai rewrite this function list comprehensions
).
How it works
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}
```
Example
See example.yaml