Fix: Updated to remove approved PRs and conflicts (#40626)

This commit is contained in:
Ali Waseem
2025-11-20 07:05:14 -07:00
committed by GitHub
parent 69c54c2eae
commit c74796a633

View File

@@ -177,6 +177,18 @@ module.exports = async ({ github, context, core }) => {
)
}
// Skip PRs that have already been actioned (reviewed)
if (reviewStatus !== 'no-reviews') {
console.log(`PR #${pr.number} has already been reviewed (${reviewStatus}), skipping...`)
continue
}
// Skip PRs with merge conflicts
if (mergeableStatus === 'conflicts') {
console.log(`PR #${pr.number} has merge conflicts, skipping...`)
continue
}
stalePRs.push({
number: pr.number,
title: pr.title,