Aliases.

IssueFileLinkSettings(ICakeContext, Func<IIssue, Uri>) Method

Summary

Gets an instance of the file link settings for linking to files based on a custom action.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

public static FileLinkSettings IssueFileLinkSettings(this ICakeContext context, Func<IIssue, Uri> builder)

Examples

Creates file link settings to an internal source hosting site with parameters set dynamically, based on values of the issue:

 var fileLinkSettings =
         IssueFileLinkSettings(issue =>
         {
             var result =
                 new Uri("https://awesomesource/")
                     .Append(issue.FilePath());

             if (issue.Line.HasValue)
             {
                 result = result.Append("?line={issue.Line.Value}")
             }

             return result;
         });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
builder Func<IIssue, Uri> Callback called for building the file link.

Return Value

Type Description
FileLinkSettings File link settings. Settings for linking files.
GitHub