@@ -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