mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 12:20:38 +08:00
s
This commit is contained in:
@ -7,9 +7,9 @@ It can be invoked manually by commenting on any PR:
|
||||
```
|
||||
For example:
|
||||
|
||||
{width=768}
|
||||
{width=512}
|
||||
|
||||
{width=768}
|
||||
{width=512}
|
||||
|
||||
## Ask lines
|
||||
|
||||
@ -18,6 +18,35 @@ You can run `/ask` on specific lines of code in the PR from the PR's diff view.
|
||||
- To select multiple lines, click on the '+' sign of the first line and then hold and drag to select the rest of the lines.
|
||||
- write `/ask "..."` in the comment box and press `Add single comment` button.
|
||||
|
||||
{width=768}
|
||||
{width=512}
|
||||
|
||||
Note that the tool does not have "memory" of previous questions, and answers each question independently.
|
||||
|
||||
## Ask on images (using the PR code as context)
|
||||
|
||||
You can also ask questions about images that appear in the comment, where the entire PR is considered as the context. The tool will answer questions based on the images in the PR.
|
||||
The basic syntax is:
|
||||
```
|
||||
/ask "..."
|
||||
|
||||
[Image](https://real_link_to_image)
|
||||
```
|
||||
|
||||
Note that GitHub has a mecahnism of pasting images in comments. However, pasted image does not provide a direct link.
|
||||
To get a direct link to the image, we recommend using the following steps:
|
||||
1) send a comment that contains only the image:
|
||||
|
||||
{width=512}
|
||||
|
||||
2) quote reply to that comment:
|
||||
|
||||
{width=512}
|
||||
|
||||
3) type the question below the image:
|
||||
|
||||
{width=512}
|
||||
{width=512}
|
||||
|
||||
4) post the comment, and receive the answer:
|
||||
|
||||
{width=512}
|
Reference in New Issue
Block a user