AzureDevOpsPullRequest.

CreateComment(string, FilePath, int, int) Method

Summary

Creates a new comment thread for the given file and position.

Syntax

public AzureDevOpsPullRequestCommentThread CreateComment(string comment, FilePath filePath, int lineNumber, int offset)

Parameters

Name Type Description
comment string Comment which should be added.
filePath FilePath Path to the file to create the comment for.
lineNumber int The line number of a thread's position. Starts at 1.
offset int The character offset of a thread's position inside of a line. Starts at 0.

Return Value

Type Description
AzureDevOpsPullRequestCommentThread A newly created comment thread, or if no pull request could be found and ThrowExceptionIfPullRequestCouldNotBeFound is set to false..