Merge pull request #404 from tgstation/Cyberboss-patch-1

Changelog and synchronize errors no longer stop the update process
This commit is contained in:
Jordan Brown
2017-11-20 16:38:55 -05:00
committed by GitHub
+2 -11
View File
@@ -1,5 +1,5 @@
using Octokit;
using System;
using Octokit;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
@@ -347,18 +347,12 @@ namespace TGS.ControlPanel
await Task.Factory.StartNew(() => repo.GenerateChangelog(out res));
if (res != null)
{
MessageBox.Show(res, "Error generating changelog");
return;
}
res = await Task.Factory.StartNew(() => repo.SynchronizePush());
if (res != null)
{
MessageBox.Show(res, "Error synchronizing commits");
return;
}
if (pullsRequests != null)
Task.WaitAll(pullsRequests.ToArray());
@@ -431,10 +425,7 @@ namespace TGS.ControlPanel
await Task.Factory.StartNew(() => repo.GenerateChangelog(out res));
if (res != null)
{
MessageBox.Show(res, "Error generating changelog");
return;
}
await Task.Factory.StartNew(() => Interface.GetComponent<ITGCompiler>().Compile(false));
if (res != null)