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
Class for writing issues to Azure DevOps pull requests.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps .Repos .PullRequest - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["AzureDevOpsPullRequest"]
class Type type-node
Syntax
public sealed class AzureDevOpsPullRequest
Constructors
Name | Summary |
---|---|
Azure |
Initializes a new instance of the AzureDevOpsPullRequest class.
|
Properties
Name | Value | Summary |
---|---|---|
CodeReviewId | int |
Gets the ID of the code review.
Returns 0 if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
CollectionName | string |
Gets the name of the Azure DevOps collection.
|
CollectionUrl | Uri |
Gets the URL for accessing the web portal of the Azure DevOps collection.
|
HasPullRequestLoaded | bool |
Gets a value indicating whether a pull request has been successfully loaded.
|
IsDraft | Nullable |
Gets if the pull request is in draft mode.
Returns
NotSet if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
LastSourceCommitId | string |
Gets the commit at the head of the source branch at the time of the last pull request merge.
Returns
System.String.Empty if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
LastTargetCommitId | string |
Gets the commit at the head of the target branch at the time of the last pull request merge.
Returns
System.String.Empty if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
ProjectName | string |
Gets the name of the Azure DevOps project.
|
PullRequestId | int |
Gets the ID of the pull request.
Returns 0 if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
PullRequestStatus | Azure |
Gets the status of the pull request.
Returns
NotSet if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
RepositoryId | Guid |
Gets the ID of the repository.
Returns
System.Guid.Empty if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
RepositoryName | string |
Gets the name of the Git repository.
|
ServerUrl | Uri |
Gets the Url of the Azure DevOps server.
|
SourceRefName | string |
Gets the name of the source branch from the pull request.
|
TargetRefName | string |
Gets the name of the target branch.
Returns
System.String.Empty if no pull request could be found and
ThrowExceptionIfPullRequestCouldNotBeFound is set to false .
|
Methods
Name | Value | Summary |
---|---|---|
Activate |
void |
Sets the pull request comment thread to
Microsoft.TeamFoundation.SourceControl.WebApi.CommentThreadStatus.Active .
|
CloseCommentThread |
void |
Sets the pull request comment thread to
Microsoft.TeamFoundation.SourceControl.WebApi.CommentThreadStatus.Closed .
|
Create |
Azure |
Create a pull request.
static
|
CreateComment |
Azure |
Creates a new comment thread for the given file and position.
|
CreateComment |
Azure |
Creates a new comment thread with a single comment in the pull request.
|
CreateCommentThread |
Azure |
Creates a new comment thread in the pull request.
|
DeleteComment |
void |
Deletes the comment.
|
DeleteComment |
void |
Deletes the comment in the given thread.
|
GetCommentThreads |
IEnumerable |
Gets the pull request comment threads.
|
GetCommits |
IEnumerable |
Gets the commits contained in the pull request.
|
GetIterationChanges |
IEnumerable |
Gets all the pull request changes of the given iteration.
|
GetLatestIterationId |
int |
Gets the Id of the latest pull request iteration.
|
GetModifiedFiles |
IEnumerable |
Gets the files modified by the pull request.
|
ResolveCommentThread |
void |
Sets the pull request comment thread status to
Microsoft.TeamFoundation.SourceControl.WebApi.CommentThreadStatus.Fixed .
|
SetStatus |
void |
Sets a status on the pull request.
|
UpdateComment |
AzureDevOpsComment |
Updates the comment.
|
Vote |
void |
Votes for the pull request.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|