AzureDevOpsAliases.

AzureDevOpsPullRequestUsingAzurePipelinesOAuthToken(ICakeContext) Method

Summary

Gets an Azure DevOps pull request using the settings provided by an Azure Pipelines build. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
Assembly
Cake.AzureDevOps.dll
Namespace
Cake.AzureDevOps
Containing Type
AzureDevOpsAliases

Syntax

public static AzureDevOpsPullRequest AzureDevOpsPullRequestUsingAzurePipelinesOAuthToken(this ICakeContext context)

Examples

Get a pull request:

var pullRequest =
    AzureDevOpsPullRequestUsingAzurePipelinesOAuthToken();

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.

Return Value

Type Description
AzureDevOpsPullRequest Description of the pull request.