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
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 |
---|---|
Cake |
|
Cake |
|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
Return Value
Type | Description |
---|---|
Azure |
Description of the pull request. |