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.Issues.
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 |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
builder | Func |
Callback called for building the file link. |
Return Value
Type | Description |
---|---|
FileLinkSettings | File link settings. Settings for linking files. |