mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Fixes Test Merge Manager crashing Control Panel
This commit is contained in:
@@ -282,16 +282,17 @@ namespace TGS.ControlPanel
|
||||
//Merge the PRs, collect errors
|
||||
var errors = await Task.Run(() => repo.MergePullRequests(pulls, false));
|
||||
|
||||
//Show any errors
|
||||
for (var I = 0; I < errors.Count(); ++I)
|
||||
if (errors != null)
|
||||
{
|
||||
var err = errors.ElementAt(I);
|
||||
if (err != null)
|
||||
MessageBox.Show(err, String.Format("Error merging PR #{0}", pulls[I].Number));
|
||||
}
|
||||
|
||||
if (errors.Count() != 0)
|
||||
//Show any errors
|
||||
for (var I = 0; I < errors.Count(); ++I)
|
||||
{
|
||||
var err = errors.ElementAt(I);
|
||||
if (err != null)
|
||||
MessageBox.Show(err, String.Format("Error merging PR #{0}", pulls[I].Number));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (pulls.Count > 0)
|
||||
//regen the changelog
|
||||
|
||||
Reference in New Issue
Block a user