From f87160a57ae43af3beff7327050619e09c3df6e0 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Sun, 26 Nov 2023 19:43:56 -0800 Subject: [PATCH] Update contributors-data.js --- .../trigger-schedule/github-data/contributors-data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-actions/trigger-schedule/github-data/contributors-data.js b/github-actions/trigger-schedule/github-data/contributors-data.js index 73af99c12b..655daecddc 100644 --- a/github-actions/trigger-schedule/github-data/contributors-data.js +++ b/github-actions/trigger-schedule/github-data/contributors-data.js @@ -14,10 +14,10 @@ const team = 'website-write'; // Since the website team takes off the month of December, the January 1st run is skipped (via `schedule-monthly.yml`). // The February 1st run keeps the 1 month inactive warning, but changes removal to 3 months inactive (skipping December). let today = new Date(); -let twoMonths = (today.getMonth() == 1) ? 6 : 5.5; // If month is "February" == 1, then twoMonths = 3 months ago +let twoMonths = (today.getMonth() == 1) ? 6 : 5; // If month is "February" == 1, then twoMonths = 3 months ago let oneMonthAgo = new Date(); // oneMonthAgo instantiated with date of "today" -oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 4.5); // then set oneMonthAgo from "today" +oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 4); // then set oneMonthAgo from "today" oneMonthAgo = oneMonthAgo.toISOString(); let twoMonthsAgo = new Date(); // twoMonthsAgo instantiated with date of "today" twoMonthsAgo.setMonth(twoMonthsAgo.getMonth() - twoMonths); // then set twoMonthsAgo from "today"