change pr.updated_at to pr.created_at for the grace period check

This commit is contained in:
Akshaj Tiwari
2026-03-07 18:58:36 +05:30
parent b374d5119a
commit ab0d5ce8d3
@@ -29,7 +29,7 @@ jobs:
const labels = pr.labels.map(l => l.name);
if (!labels.includes("pr-requirements-warning")) continue;
const gracePeriod = 24 * 60 * 60 * 1000;
const lastUpdated = new Date(pr.updated_at);
const lastUpdated = new Date(pr.created_at);
const now = new Date();
if (now - lastUpdated < gracePeriod) {
console.log(`Skipping PR #${pr.number} — still within grace period`);