Perhaps just not completed.

This commit is contained in:
Michael J Mulligan 2021-04-07 21:27:31 +01:00
parent 4449bb8588
commit c08799ee2c
4 changed files with 8 additions and 8 deletions

View file

@ -6770,8 +6770,8 @@ function fetchCheckSuiteId(runId) {
if (!currentRun) {
throw `Unexpected error: No run returned`;
}
if (currentRun.status !== `in_progress`) {
throw `Unexpected error: Expected status of 'in_progress', got '${currentRun.status}': ` + util_1.inspect(currentRun);
if (currentRun.conclusion) {
throw `Unexpected error: Expected Check Suite with no conclusion, got: ` + util_1.inspect(currentRun);
}
// The GitHub API it's self does present the `check_suite_id` property, but it is not documented or present returned object's `type`
currentCheckSuiteId = (_a = parseInt(currentRun.check_suite_url.substr(1 + currentRun.check_suite_url.lastIndexOf(`/`)))) !== null && _a !== void 0 ? _a : -1;

4
dist/pre/index.js vendored
View file

@ -6770,8 +6770,8 @@ function fetchCheckSuiteId(runId) {
if (!currentRun) {
throw `Unexpected error: No run returned`;
}
if (currentRun.status !== `in_progress`) {
throw `Unexpected error: Expected status of 'in_progress', got '${currentRun.status}': ` + util_1.inspect(currentRun);
if (currentRun.conclusion) {
throw `Unexpected error: Expected Check Suite with no conclusion, got: ` + util_1.inspect(currentRun);
}
// The GitHub API it's self does present the `check_suite_id` property, but it is not documented or present returned object's `type`
currentCheckSuiteId = (_a = parseInt(currentRun.check_suite_url.substr(1 + currentRun.check_suite_url.lastIndexOf(`/`)))) !== null && _a !== void 0 ? _a : -1;

4
dist/run/index.js vendored
View file

@ -6780,8 +6780,8 @@ function fetchCheckSuiteId(runId) {
if (!currentRun) {
throw `Unexpected error: No run returned`;
}
if (currentRun.status !== `in_progress`) {
throw `Unexpected error: Expected status of 'in_progress', got '${currentRun.status}': ` + util_1.inspect(currentRun);
if (currentRun.conclusion) {
throw `Unexpected error: Expected Check Suite with no conclusion, got: ` + util_1.inspect(currentRun);
}
// The GitHub API it's self does present the `check_suite_id` property, but it is not documented or present returned object's `type`
currentCheckSuiteId = (_a = parseInt(currentRun.check_suite_url.substr(1 + currentRun.check_suite_url.lastIndexOf(`/`)))) !== null && _a !== void 0 ? _a : -1;

View file

@ -121,8 +121,8 @@ async function fetchCheckSuiteId(runId: number): Promise<number> {
throw `Unexpected error: No run returned`
}
if (currentRun.status !== `in_progress`) {
throw `Unexpected error: Expected status of 'in_progress', got '${currentRun.status}': ` + inspect(currentRun)
if (currentRun.conclusion) {
throw `Unexpected error: Expected Check Suite with no conclusion, got: ` + inspect(currentRun)
}
// The GitHub API it's self does present the `check_suite_id` property, but it is not documented or present returned object's `type`