Skip to content

Commit 5e8a318

Browse files
Revert comments in DocFxChangelogDownloadTask
1 parent 7694d0e commit 5e8a318

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

build/Program.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -446,26 +446,26 @@ public class DocFxChangelogDownloadTask : FrostingTask<BuildContext>
446446
{
447447
public override void Run(BuildContext context)
448448
{
449-
// if (context.Argument("AllVersions", false))
450-
// {
451-
// context.DocfxChangelogDownload(
452-
// DocumentationHelper.BdnAllVersions.First(),
453-
// DocumentationHelper.BdnFirstCommit);
454-
//
455-
// for (int i = 1; i < DocumentationHelper.BdnAllVersions.Length; i++)
456-
// context.DocfxChangelogDownload(
457-
// DocumentationHelper.BdnAllVersions[i],
458-
// DocumentationHelper.BdnAllVersions[i - 1]);
459-
// } else if (context.Argument("LatestVersions", false))
460-
// {
461-
// }
462-
//
463-
// if (!context.Argument("StableVersions", false))
464-
// context.DocfxChangelogDownload(
465-
// DocumentationHelper.BdnNextVersion,
466-
// DocumentationHelper.BdnAllVersions.Last(),
467-
// "HEAD");
468-
449+
if (context.Argument("AllVersions", false))
450+
{
451+
context.DocfxChangelogDownload(
452+
DocumentationHelper.BdnAllVersions.First(),
453+
DocumentationHelper.BdnFirstCommit);
454+
455+
for (int i = 1; i < DocumentationHelper.BdnAllVersions.Length; i++)
456+
context.DocfxChangelogDownload(
457+
DocumentationHelper.BdnAllVersions[i],
458+
DocumentationHelper.BdnAllVersions[i - 1]);
459+
} else if (context.Argument("LatestVersions", false))
460+
{
461+
}
462+
463+
if (!context.Argument("StableVersions", false))
464+
context.DocfxChangelogDownload(
465+
DocumentationHelper.BdnNextVersion,
466+
DocumentationHelper.BdnAllVersions.Last(),
467+
"HEAD");
468+
469469
for (int i = DocumentationHelper.BdnAllVersions.Length - 3; i < DocumentationHelper.BdnAllVersions.Length; i++)
470470
context.DocfxChangelogDownload(
471471
DocumentationHelper.BdnAllVersions[i],

0 commit comments

Comments
 (0)