From 417def8c8b145cd5ca66e182b6de69e442537ec7 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 7 Mar 2022 12:02:46 +0100 Subject: [PATCH] only mark deprecations as old after 14 months --- config/blame-deprecations.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/blame-deprecations.mjs b/config/blame-deprecations.mjs index 8029b1cb366..82cc1f593c7 100644 --- a/config/blame-deprecations.mjs +++ b/config/blame-deprecations.mjs @@ -36,8 +36,8 @@ function* deprecationMessages(dir) { try { const [_, sha, time, lineNumber] = line.match(blameRegExp); const date = new Date(time); - // check if it's within the last year - if (date.getTime() >= Date.now() - 365 * 24 * 60 * 60 * 1000) { + // check if it's within the last 14 months (a year, plus 2 months for safety, in case a PR was delayed) + if (date.getTime() >= Date.now() - 14 * 31 * 24 * 60 * 60 * 1000) { continue; } const message = `${file}:${lineNumber} was last updated on ${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;