in src/PrDisplay.js [857:883]
mergeStatuses(statuses) {
if (statuses.length === 0) {
return "SKIPPED";
}
const counts = {
FAILURE: 0,
NEUTRAL: 0,
CANCELLED: 0,
SUCCESS: 0,
};
for (const status of statuses) {
counts[status] += 1;
}
if (counts.FAILURE > 0) {
return "FAILURE";
}
if (counts.NEUTRAL + counts.CANCELLED === statuses.length) {
return "SKIPPED";
}
if (counts.SUCCESS === statuses.length) {
return "SUCCESS";
}
if (counts.NEUTRAL === statuses.length) {
return "SKIPPED";
}
return "PENDING";
}