Summary
Gets an instance of the file link settings for linking to files
based on a custom pattern.
Syntax
public static FileLinkSettings IssueFileLinkSettings(this ICakeContext context, string pattern)
Examples
Creates file link settings to an internal source hosting site:
var fileLinkSettings =
IssueFileLinkSettings("https://awesomesource/{FilePath}?line={Line}");
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
pattern |
string |
Pattern of the file link.
See ReplaceIssuePattern(string, IIssue)
for a list of tokens supported in the pattern. |
Return Value