Ask Questions about a PR
Platforms supported: GitHub, GitLab, Bitbucket, Azure DevOps
This feature allows you to ask questions about a pull request based on its code changes. Questions are answered using the current pull request context, so they should be specific and clearly phrased.
You can invoke this feature manually by commenting on the pull request using the /ask command as follows:
/ask ...

Asking questions on specific lines
Platforms supported: GitHub, GitLab
You can run the /ask command on specific lines of code directly from the pull request diff view. Qodo will answer questions based on the code changes in the selected lines.
Click the + icon next to the line number to select a line. To select multiple lines, click the + icon on the first line, then click and drag to select additional lines.
In the comment box, type
/askfollowed by your question.Click Add single comment.
Each question is handled independently. The feature does not retain context from previous questions.

Asking questions about images
You can ask questions about images included in pull request comments. In this case, the entire pull request code is used as context.
Where https://real_link_to_image is a direct link to the image.
GitHub allows pasting images directly into comments, but pasted images do not provide a direct image URL. To obtain a direct link:
Post a comment containing only the image.

Click the ... menu on the top-right of the comment and select Quote reply.

In the reply box, add your question below the image using the
/askcommand.

Post the comment to receive the answer.

Last updated