test checks
parent
cf3b8f127e
commit
c6bdec539c
|
|
@ -722,7 +722,10 @@ class CloudRunnerOptions {
|
|||
return CloudRunnerOptions.getInput('githubChecks') || false;
|
||||
}
|
||||
static get githubOwner() {
|
||||
return CloudRunnerOptions.githubRepo.split(`github.com/`)[1] || false;
|
||||
return CloudRunnerOptions.githubRepo.split(`/`)[0] || false;
|
||||
}
|
||||
static get githubRepoName() {
|
||||
return CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
|
||||
}
|
||||
// ### ### ###
|
||||
// Git syncronization parameters
|
||||
|
|
@ -1029,7 +1032,7 @@ class CloudRunner {
|
|||
CloudRunner.setup(buildParameters);
|
||||
try {
|
||||
if (cloud_runner_options_1.default.githubChecksEnabled) {
|
||||
yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, buildParameters.githubRepo, buildParameters.gitPrivateToken, 'test-check-name', buildParameters.gitSha, 'A check test', buildParameters.buildGuid);
|
||||
yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, buildParameters.gitPrivateToken, 'test-check-name', buildParameters.gitSha, 'A check test', buildParameters.buildGuid);
|
||||
}
|
||||
if (buildParameters.retainWorkspace) {
|
||||
CloudRunner.lockedWorkspace = `${CloudRunner.retainedWorkspacePrefix}-${CloudRunner.buildParameters.buildGuid}`;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -64,7 +64,11 @@ class CloudRunnerOptions {
|
|||
}
|
||||
|
||||
static get githubOwner() {
|
||||
return CloudRunnerOptions.githubRepo.split(`github.com/`)[1] || false;
|
||||
return CloudRunnerOptions.githubRepo.split(`/`)[0] || false;
|
||||
}
|
||||
|
||||
static get githubRepoName() {
|
||||
return CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
|
||||
}
|
||||
|
||||
// ### ### ###
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class CloudRunner {
|
|||
if (CloudRunnerOptions.githubChecksEnabled) {
|
||||
await GitHub.createGitHubCheck(
|
||||
CloudRunnerOptions.githubOwner,
|
||||
buildParameters.githubRepo,
|
||||
CloudRunnerOptions.githubRepoName,
|
||||
buildParameters.gitPrivateToken,
|
||||
'test-check-name',
|
||||
buildParameters.gitSha,
|
||||
|
|
|
|||
Loading…
Reference in New Issue