File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ export const completeTaskReportMessage = async ({
2020 ! hasUrgent && hasUpcoming && ! hasUnassigned
2121 ? "Nothing urgent or unassigned upcoming! 🐀🥂"
2222 : "Check out all upcoming tasks [here.](https://github.com/orgs/CarletonComputerScienceSociety/projects/18) 🐀🐀" ;
23+ const urgentItemsLinkThreshold = 5 ;
24+ const urgentItemsLinkBool = urgentItems . length <= urgentItemsLinkThreshold ;
2325
2426 return {
2527 title : "Biweekly Tasks Reminder ☀️🌱" ,
@@ -30,7 +32,7 @@ export const completeTaskReportMessage = async ({
3032 {
3133 title : "🔥 Urgent & Overdue" ,
3234 items : urgentItems ,
33- includeLinks : true ,
35+ includeLinks : urgentItemsLinkBool ,
3436 } ,
3537 ]
3638 : [ ] ) ,
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ export const dailyTasksReminder = async () => {
3131 if ( githubItemsResult . err ) {
3232 return githubItemsResult ;
3333 }
34-
35- const nonBacklogItems = filterOutStatus ( githubItemsResult . val , "Backlog" ) ;
34+ const nonIceboxItems = filterOutStatus ( githubItemsResult . val , "Icebox" ) ;
35+ const nonBacklogItems = filterOutStatus ( nonIceboxItems , "Backlog" ) ;
3636 const unassignedItems = filterForUnassigned ( nonBacklogItems ) ;
3737 const upcomingItems = filterUpcomingItems ( nonBacklogItems ) ;
3838 const urgentItems = filterForUrgentItems ( nonBacklogItems ) ;
You can’t perform that action at this time.
0 commit comments