Skip to content

Commit

Permalink
Adapt check to disregard skipped checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed Jan 14, 2025
1 parent 09cce22 commit 4697d96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/merge-to-stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4697d96

Please sign in to comment.