Summary
Class for writing issues to Azure DevOps pull requests.
- 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 | bool? |
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
CommentThreadStatus.Active .
|
Create |
Azure |
Create a pull request.
static
|
CreateComment |
void |
Creates a new comment thread with a single comment in the pull request.
|
CreateCommentThread |
void |
Creates a new comment thread in the pull request.
|
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
CommentThreadStatus.Fixed .
|
SetStatus |
void |
Sets a status on the pull request.
|
Vote |
void |
Votes for the pullrequest.
|