Ask
The ask
tool answers questions about the PR, based on the PR code changes.
Make sure to be specific and clear in your questions. It can be invoked manually by commenting on any PR:
/ask ...
Example usage


How to use the ask
tool
ask
toolManual usage
Comment on the PR:
/ask
Ask on specific lines
You can run /ask
on specific lines of code in the PR from the PR's diff view. The tool will answer questions based on the code changes in the selected lines.
Click on the + sign next to the line number to select the line.
To select multiple lines, click on the + sign of the first line, then hold and drag to select more lines.
In the comment box, type
/ask
followed by your question.Click the
Add single comment
button.

Ask on images
You can ask questions about images in comments, where the entire PR code will be used as context:
/ask "..."[Image](https://real_link_to_image)
Where https://real_link_to_image
is the direct link to the image.
GitHub has a built-in mechanism of pasting images in comments. However, a pasted image does not provide a direct link. To get a direct link to an image, we recommend using the following scheme:
1. First, post a comment that contains only the image:

2. Click the three dots ... on the top right of the comment, then choose Quote reply.

3. In the opened chatbox, type the question below the image:


4. Post the comment, and receive the answer:

Last updated
Was this helpful?