harupy / ask-ai

Enhance PR reviews by querying AI with your questions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ask AI

Enhance PR reviews by querying AI with your questions.

Usage

  1. Select the lines you want to leave a comment on.
  2. 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

About

Enhance PR reviews by querying AI with your questions.


Languages

Language:JavaScript 98.4%Language:Python 1.6%