FIX: update checks after circleci stuff moved to ga
This commit is contained in:
parent
d1c29fb320
commit
b2d29ad159
11
src/main.ts
11
src/main.ts
@ -92,12 +92,9 @@ async function run(): Promise<void> {
|
||||
|
||||
for (const check of checks.data.check_runs) {
|
||||
if (check.name === "e2e" && check.conclusion === "success") e2ePassed = true;
|
||||
if (check.name === "test" && check.conclusion === "success") {
|
||||
// in job "test" we run all of it, so if it passes - all of them passed
|
||||
unitTestsPassed = true;
|
||||
integrationTestsPassed = true;
|
||||
lintTestsPassed = true;
|
||||
}
|
||||
if (check.name === "unit" && check.conclusion === "success") unitTestsPassed = true;
|
||||
if (check.name === "lint" && check.conclusion === "success") lintTestsPassed = true;
|
||||
if (check.name === "integration" && check.conclusion === "success") integrationTestsPassed = true;
|
||||
}
|
||||
|
||||
if (reviews.data.length >= 1) {
|
||||
@ -113,8 +110,6 @@ async function run(): Promise<void> {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// if (review["state"] === "COMMENTED") continue;
|
||||
if (review["state"] !== "APPROVED") {
|
||||
console.log("NOT approved by", review.user.login);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user