mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 05:27:30 +01:00
Set check back to pending on re-runs
This commit is contained in:
@@ -1679,6 +1679,7 @@ package (version) distribution(s); urgency=urgency
|
||||
{
|
||||
Pending,
|
||||
Started,
|
||||
Rerun,
|
||||
Cancelled,
|
||||
Success,
|
||||
Failure,
|
||||
@@ -1715,6 +1716,18 @@ package (version) distribution(s); urgency=urgency
|
||||
StartedAt = DateTimeOffset.UtcNow,
|
||||
});
|
||||
|
||||
break;
|
||||
case CheckMode.Rerun:
|
||||
var prChecks3 = await gitHubClient.Check.Run.GetAllForReference(RepoOwner, RepoName, ciTargetSha);
|
||||
var theCheckWeWant3 = prChecks3.CheckRuns.First(x => x.App.Id == AppId);
|
||||
if(theCheckWeWant3.Status != CheckStatus.InProgress)
|
||||
{
|
||||
await gitHubClient.Check.Run.Update(RepoOwner, RepoName, theCheckWeWant3.Id, new CheckRunUpdate
|
||||
{
|
||||
Status = CheckStatus.InProgress,
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
case CheckMode.Cancelled:
|
||||
case CheckMode.Failure:
|
||||
|
||||
Reference in New Issue
Block a user