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:
Example usage


How to use the ask tool
Manual usage
Comment on the PR:
Ask on specific lines
Platforms supported: GitHub, GitLab
/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.
To select multiple lines, click on the + sign of the first line, then hold and drag to select more lines.
Note:The tool does not hold memory of previous questions, and answers each question independently.
Ask on images
You can ask questions about images in comments, where the entire PR code will be used as context: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:





