Skip to content

Commit

Permalink
Fix ChangelogTasks to use HTTPS links in history
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Dec 7, 2020
1 parent 41c70a4 commit 1064342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Nuke.Common/ChangeLog/ChangeLogTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ private static void UpdateVersionSummary(string tag, List<string> content, [CanB
content.RemoveRange(lastSection.EndIndex + 1, content.Count - lastSection.EndIndex - 1);

content.Add(string.Empty);
content.Add($"[{firstSection.Caption}]: {repository}/compare/{tag}...HEAD");
content.Add($"[{firstSection.Caption}]: {repository.HttpsUrl}/compare/{tag}...HEAD");
for (var i = 1; i + 1 < sections.Count; i++)
content.Add($"[{sections[i].Caption}]: {repository}/compare/{sections[i + 1].Caption}...{sections[i].Caption}");
content.Add($"[{lastSection.Caption}]: {repository}/tree/{lastSection.Caption}");
content.Add($"[{sections[i].Caption}]: {repository.HttpsUrl}/compare/{sections[i + 1].Caption}...{sections[i].Caption}");
content.Add($"[{lastSection.Caption}]: {repository.HttpsUrl}/tree/{lastSection.Caption}");
}
}

Expand Down

0 comments on commit 1064342

Please sign in to comment.