コード例 #1
0
        /// <summary>
        /// Sets a <see cref="FileLinkSettings"/> to create the link of the position in the file where the issue ocurred.
        /// </summary>
        /// <param name="fileLinkSettings">Settings to create the link of the position in the file where the issue ocurred.</param>
        /// <returns>Issue Builder instance.</returns>
        public IssueBuilder WithFileLinkSettings(FileLinkSettings fileLinkSettings)
        {
            fileLinkSettings.NotNull(nameof(fileLinkSettings));

            this.fileLinkSettings = fileLinkSettings;

            return(this);
        }
コード例 #2
0
        public static FileLinkSettings IssueFileLinkSettings(
            this ICakeContext context,
            Func <IIssue, Uri> builder)
        {
            context.NotNull(nameof(context));
            builder.NotNull(nameof(builder));

            return(FileLinkSettings.ForAction(builder));
        }
コード例 #3
0
        public static FileLinkSettings IssueFileLinkSettings(
            this ICakeContext context,
            string pattern)
        {
            context.NotNull(nameof(context));
            pattern.NotNullOrWhiteSpace(nameof(pattern));

            return(FileLinkSettings.ForPattern(pattern));
        }
コード例 #4
0
        public static FileLinkSettings IssueFileLinkSettingsForAzureDevOpsCommit(
            this ICakeContext context,
            Uri repositoryUrl,
            string commitId,
            string rootPath)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            commitId.NotNullOrWhiteSpace(nameof(commitId));

            return
                (FileLinkSettings
                 .ForAzureDevOps(repositoryUrl)
                 .Commit(commitId)
                 .WithRootPath(rootPath));
        }
コード例 #5
0
        public static FileLinkSettings IssueFileLinkSettingsForAzureDevOpsBranch(
            this ICakeContext context,
            Uri repositoryUrl,
            string branch,
            string rootPath)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            branch.NotNullOrWhiteSpace(nameof(branch));

            return
                (FileLinkSettings
                 .ForAzureDevOps(repositoryUrl)
                 .Branch(branch)
                 .WithRootPath(rootPath));
        }