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
Adds a new comment thread with a single comment to an Azure DevOps pull request using
the specified settings.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps - Containing Type
- AzureDevOpsAliases
Syntax
public static void AzureDevOpsAddCommentToPullRequest(this ICakeContext context, AzureDevOpsPullRequestSettings settings, string comment)
Examples
Add comment 'Hello World' to pull request:
var pullRequestSettings =
new AzureDevOpsPullRequestSettings(
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
AzureDevOpsAuthenticationNtlm());
AzureDevOpsAddCommentToPullRequest(
pullRequestSettings,
"Hello World");
Attributes
| Type | Description |
|---|---|
| Cake |
|
| Cake |
|
| Cake |
|
| Cake |
|
| Cake |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| settings | Azure |
Settings for accessing the pull request. |
| comment | string | The comment which should be added to the pull request. |
Return Value
| Type | Description |
|---|---|
| void |
