From 4697d96dbc86535ec4fe87c77ddb3745a69d7284 Mon Sep 17 00:00:00 2001 From: Okan Sahin Date: Tue, 14 Jan 2025 15:07:38 +0100 Subject: [PATCH] Adapt check to disregard skipped checks --- .github/workflows/merge-to-stage.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-to-stage.js b/.github/workflows/merge-to-stage.js index 9e49f2dd69..36e6e26cf4 100644 --- a/.github/workflows/merge-to-stage.js +++ b/.github/workflows/merge-to-stage.js @@ -52,7 +52,12 @@ let body = ` const isHighPrio = (labels) => labels.includes(LABELS.highPriority); const isZeroImpact = (labels) => labels.includes(LABELS.zeroImpact); -const hasFailingChecks = (checks) => checks.some(({ conclusion, name }) => name !== 'merge-to-stage' && conclusion !== 'success'); +const hasFailingChecks = (checks) => + checks.some( + ({ conclusion, name }) => + name !== 'merge-to-stage' && + (conclusion === 'in_progress' || conclusion === 'failure') + ); const commentOnPR = async (comment, prNumber) => { console.log(comment); // Logs for debugging the action.