mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-14 09:33:22 +01:00
Make some permanent PRs for the repository test
This commit is contained in:
@@ -106,12 +106,15 @@ namespace Tgstation.Server.Tests.Instance
|
||||
if (String.IsNullOrWhiteSpace(testPRString))
|
||||
testPRString = Environment.GetEnvironmentVariable("TRAVIS_PULL_REQUEST");
|
||||
|
||||
if (!String.IsNullOrWhiteSpace(testPRString))
|
||||
{
|
||||
if (!int.TryParse(testPRString, out var prNumber))
|
||||
Assert.Inconclusive($"Invalid PR #: {testPRString}");
|
||||
await TestMergeTests(updated, prNumber, cancellationToken);
|
||||
}
|
||||
if (String.IsNullOrWhiteSpace(testPRString))
|
||||
if (workingBranch == "dev")
|
||||
testPRString = "957";
|
||||
else
|
||||
testPRString = "958";
|
||||
|
||||
if (!int.TryParse(testPRString, out var prNumber))
|
||||
Assert.Inconclusive($"Invalid PR #: {testPRString}");
|
||||
await TestMergeTests(updated, prNumber, cancellationToken);
|
||||
}
|
||||
|
||||
async Task<Repository> Checkout(Repository updated, bool expectFailure, bool isRef, CancellationToken cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user