Skip to content

Commit

Permalink
Adjust due date and xs size for function to add items to review board (
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 authored Oct 1, 2021
1 parent ee96130 commit f2347b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/actions-scripts/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,15 @@ export function formatDateForProject(date) {
export function calculateDueDate(datePosted, turnaround = 2) {
let daysUntilDue
switch (datePosted.getDay()) {
case 0: // Sunday
daysUntilDue = turnaround + 1
case 4: // Thursday
daysUntilDue = turnaround + 2
break
case 6: // Saturday
case 5: // Friday
daysUntilDue = turnaround + 2
break
case 6: // Saturday
daysUntilDue = turnaround + 1
break
default:
daysUntilDue = turnaround
}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions-scripts/ready-for-docs-review.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function run() {
// Determine the size
if (numFiles < 5 && numChanges < 25) {
sizeType = sizeXS
} else if (numFiles < 5 && numChanges < 25) {
} else if (numFiles < 5 && numChanges < 10) {
sizeType = sizeS
} else if (numFiles < 5 && numChanges < 25) {
sizeType = sizeM
Expand Down

0 comments on commit f2347b7

Please sign in to comment.