Пример #1
0
 public TodoItem(string title, int line, string file, int startLines, int endLine, TodoDiffType type,
                 string repo, string sha, IList <string> labels)
 {
     Title    = title;
     _line    = line;
     _file    = file;
     DiffType = type;
     _labels  = labels;
     _body    =
         $"**{Title}**\n\nLine: {_line}\nhttps://github.com/{repo}/blob/{sha}{file}#L{startLines}-L{endLine}";
 }
Пример #2
0
 public TodoItem(string title, int line, string file, int startLines, int endLine, TodoDiffType type,
                 string repo, string sha, IList <string> labels)
 {
     Title    = title;
     _line    = line;
     File     = file;
     DiffType = type;
     Labels   = labels;
     Body     =
         $"<b>{Title}</b> <br>{File}:{_line}<br><br><a href=\"https://github.com/{repo}/blob/{sha}{File}#L{startLines}-L{endLine}\">Visit github</a><br>";
 }