AzureDevOpsPullRequestSystemAliases.

AzureDevOpsPullRequests(ICakeContext, Uri, string, IAzureDevOpsCredentials) Method

Summary

Gets an object for writing issues to Azure DevOps pull request in a specific repository and for a specific source branch.

Syntax

public static IPullRequestSystem AzureDevOpsPullRequests(this ICakeContext context, Uri repositoryUrl, string sourceBranch, IAzureDevOpsCredentials credentials)

Examples

Report code analysis issues reported as MsBuild warnings to an Azure DevOps pull request:

ReportIssuesToPullRequest(
        MsBuildCodeAnalysis(
            @"c:\build\msbuild.log",
            MsBuildXmlFileLoggerFormat),
        AzureDevOpsPullRequests(
            new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
            "refs/heads/feature/myfeature",
            AzureDevOpsAuthenticationNtlm()),
        @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryUrl Uri Full URL of the Git repository, e.g.
http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository
. Supported URL schemes are HTTP, HTTPS and SSH. URLs using SSH scheme are converted to HTTPS.
sourceBranch string Branch for which the pull request is made.
credentials IAzureDevOpsCredentials Credentials to use to authenticate against Azure DevOps.

Return Value

Type Description
IPullRequestSystem Object for writing issues to Azure DevOps pull request.