Exemplo n.º 1
0
        public static IPullRequestSystem AzureDevOpsPullRequests(
            this ICakeContext context)
        {
            context.NotNull(nameof(context));

            return(context.AzureDevOpsPullRequests(new AzureDevOpsPullRequestSystemSettings()));
        }
Exemplo n.º 2
0
        public static IPullRequestSystem AzureDevOpsPullRequests(
            this ICakeContext context,
            IAzureDevOpsCredentials credentials)
        {
            context.NotNull(nameof(context));
            credentials.NotNull(nameof(credentials));

            return(context.AzureDevOpsPullRequests(new AzureDevOpsPullRequestSystemSettings(credentials)));
        }
Exemplo n.º 3
0
        public static IPullRequestSystem AzureDevOpsPullRequests(
            this ICakeContext context,
            Uri repositoryUrl,
            int pullRequestId,
            IAzureDevOpsCredentials credentials)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            credentials.NotNull(nameof(credentials));

            return(context.AzureDevOpsPullRequests(new AzureDevOpsPullRequestSystemSettings(repositoryUrl, pullRequestId, credentials)));
        }
Exemplo n.º 4
0
        public static IPullRequestSystem AzureDevOpsPullRequests(
            this ICakeContext context,
            Uri repositoryUrl,
            string sourceBranch,
            IAzureDevOpsCredentials credentials)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            sourceBranch.NotNullOrWhiteSpace(nameof(sourceBranch));
            credentials.NotNull(nameof(credentials));

            return(context.AzureDevOpsPullRequests(new AzureDevOpsPullRequestSystemSettings(repositoryUrl, sourceBranch, credentials)));
        }