Prevent the same test merge PR# from being merged multiple times in one commit chain.

This is necessary to keep a sane database. Workaround is to checkout whatever base you want and then reapply test merges as desired
This commit is contained in:
Cyberboss
2018-09-12 13:35:07 -04:00
parent 6254913d46
commit e6795dd84c
@@ -609,6 +609,10 @@ namespace Tgstation.Server.Host.Controllers
{
Octokit.PullRequest pr = null;
string errorMessage = null;
if (lastRevisionInfo.ActiveTestMerges.Any(x => x.TestMerge.Number == I.Number.Value))
throw new JobException("Cannot test merge the same PR twice in one HEAD!");
try
{
//load from cache if possible