website icon indicating copy to clipboard operation
website copied to clipboard

Adjustment to "Schedule Monthly" workflow

Open t-will-gillis opened this issue 1 year ago • 1 comments

Overview

The "Schedule Monthly" workflow is keeping inactive devs on the Roster longer than desirable. This is partially due to the way that the workflow handles the July and December breaks. We need to adjust the timeline for the oneMonth variable in August and January.

Action Items

In get-contributors-data.js, replace:

// The Feb. 1st and Sept. 1st runs account for skipped months: 'oneMonth' & 'twoMonths' = 2 & 3 months respectively
let today = new Date();
let oneMonth = (today.getMonth() === 1 || today.getMonth() === 8) ? 2 : 1;
let twoMonths = (today.getMonth() === 1 || today.getMonth() === 8) ? 3 : 2;

let oneMonthAgo = new Date();                              // oneMonthAgo instantiated with date of "today"
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - oneMonth);   // then set oneMonthAgo from "today"

with:

// The Feb. 1st and Sept. 1st runs account for skipped months: 'oneMonth' & 'twoMonths' = 1 & 3 months respectively
let today = new Date();
let twoMonths = (today.getMonth() === 1 || today.getMonth() === 8) ? 3 : 2;

let oneMonthAgo = new Date();                                           // oneMonthAgo instantiated with date of "today"
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - 1);   // then set oneMonthAgo from "today"
  • [ ] Although this issue involves a GitHub Action, testing is not required.

Resources/Instructions

t-will-gillis avatar Oct 20 '24 22:10 t-will-gillis

Hi @t-will-gillis, we notice that you are assigned to an issue that you authored. Please remember to add the Draft label to this issue while you are working on it.

HackforLABot avatar Oct 21 '24 17:10 HackforLABot