Skip to content

Commit

Permalink
Provide name of product in changelog (QL-Win#945)
Browse files Browse the repository at this point in the history
* Provide name of product in changelog

fixes QL-Win#944

* Change of headline-string
  • Loading branch information
rabelux authored Jun 27, 2021
1 parent 49bb96e commit 2b8b0e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QuickLook/Helpers/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ private static void CollectAndShowReleaseNotes()
{
var json = DownloadJson("https://api.github.com/repos/xupefei/QuickLook/releases");

var notes = string.Empty;
var notes = "# QuickLook has been updated!\r\n";

var count = 0;
foreach (var item in json)
{
notes += $"# {item["name"]}\r\n\r\n";
notes += $"## {item["name"]}\r\n\r\n";
notes += item["body"] + "\r\n\r\n";

if (count++ > 10)
Expand Down Expand Up @@ -133,4 +133,4 @@ private static dynamic DownloadJson(string url)
return json;
}
}
}
}

0 comments on commit 2b8b0e5

Please sign in to comment.