diff --git a/handbook/digital-experience/README.md b/handbook/digital-experience/README.md index 2796e59f815e..7fdc3a9ced88 100644 --- a/handbook/digital-experience/README.md +++ b/handbook/digital-experience/README.md @@ -837,6 +837,10 @@ After the team member notifies the Head of Digital Experience (via Slack), the H 4. Go through the calendar and make sure all private meetings (e.g. 1:1's, E-Group, and quarterly board meetings) have "[no shadows]" in the event title. +### Check GitHub terms + +Go to [GitHub's terms of services](https://docs.github.com/en/free-pro-team@latest/github/site-policy/github-terms-of-service) and search “inbound=outbound” to find the clause, if still there as is, paste a screenshot into the table in this [document](https://docs.google.com/document/d/101rcp9v3Zdml4YolGRmqYS5ruAKzQvXLOTHLXCavPuE/edit#heading=h.xu6qsi0wrns). If the clause has changed, contact Mike M. and let him know. + ## Rituals diff --git a/handbook/digital-experience/digital-experience.rituals.yml b/handbook/digital-experience/digital-experience.rituals.yml index ef8e569db69c..d7f42066ca5d 100644 --- a/handbook/digital-experience/digital-experience.rituals.yml +++ b/handbook/digital-experience/digital-experience.rituals.yml @@ -221,6 +221,16 @@ description: "Log into the \"Integrations admin\" account in Salesforce and change the password to prevent a password change being required by Salesforce." moreInfoUrl: "https://fleetdm.com/handbook/digital-experience#change-the-integrations-admin-salesforce-account-password" dri: "eashaw" +- + task: "Check GitHub/GitLab terms" + startedOn: "2023-10-24" + frequency: "Annually" + description: "Check GitHub's terms to make sure the “inbound=outbound” clause is unchanged." + moreInfoUrl: "https://fleetdm.com/handbook/digital-experience#check-github-terms" + dri: "hollidayn" + autoIssue: + labels: [ "#g-digital-experience" ] + repo: "confidential" - task: "Check that there is sufficient availability for scheduling demos via fleetdm.com/contact" startedOn: "2024-10-25" diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index eaa40900b3f3..e9e8a01afbd5 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -1010,7 +1010,7 @@ module.exports = { }); let githubLabelsToCheck = {}; - let KNOWN_AUTOMATABLE_FREQUENCIES = ['Daily', 'Weekly', 'Triweekly', 'Monthly']; + let KNOWN_AUTOMATABLE_FREQUENCIES = ['Daily', 'Weekly', 'Triweekly', 'Monthly', 'Annually']; // Process each rituals YAML file. These will be added to the builtStaticContent as JSON for(let ritualsYamlFilePath of ritualTablesYamlFiles){ // Get this rituals.yml file's parent folder name, we'll use this as the key for this section's rituals in the ritualsTables dictionary diff --git a/website/scripts/create-issues-for-todays-rituals.js b/website/scripts/create-issues-for-todays-rituals.js index 687b26c45a12..f37ff95284eb 100644 --- a/website/scripts/create-issues-for-todays-rituals.js +++ b/website/scripts/create-issues-for-todays-rituals.js @@ -46,6 +46,8 @@ module.exports = { ritualsFrequencyInMs = 1000 * 60 * 60 * 24 * 7 * 2; } else if(ritual.frequency === 'Triweekly'){ ritualsFrequencyInMs = 1000 * 60 * 60 * 24 * 7 * 3; + } else if (ritual.frequency === 'Annually') { + ritualsFrequencyInMs = 1000 * 60 * 60 * 24 * 365; } else if (ritual.frequency === 'Monthly') { // For monthly rituals, we will create issues on the day of the month that the ritual was started on, or the last day of the month if the ritual was started on a day that doesn't exist in the current month // (e.g, the next issue for a monthly ritual started on 2024-01-31 would be created for on 2024-02-29) @@ -66,7 +68,18 @@ module.exports = { }//fi // Determine if we should create an issue for non-monthly rituals. - if(ritual.frequency !== 'Monthly') { + if(ritual.frequency === 'Annually') { + // Create a date of when the ritual started + let ritualStartedOn = new Date(ritual.startedOn); + let dayToCreateIssueOn = ritualStartedOn.getUTCDate(); + let monthToCreateIssueOn = ritualStartedOn.getUTCMonth(); + + // Check if today's month and day match the ritual's start date + if (now.getUTCDate() === dayToCreateIssueOn && now.getUTCMonth() === monthToCreateIssueOn) { + isItTimeToCreateANewIssue = true; + } + nextIssueShouldBeCreatedAt = new Date(now.getUTCFullYear() + 1, monthToCreateIssueOn, dayToCreateIssueOn); + } else if(ritual.frequency !== 'Monthly') { // Get a JS timestamp representing 12 PM UTC of the day this script is running. let twelveHoursInMs = 1000 * 60 * 60 * 12; let lastUTCNoonAt = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 12, 0, 0, 0)).getTime();