This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AzureDevOps.
Summary
Creates a new comment thread for the given file and position.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps .Repos .PullRequest - Containing Type
- Azure
Dev Ops Pull Request
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 |
---|---|
Azure |
A newly created comment thread, or if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .. |