We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f4a8a commit ed26c87Copy full SHA for ed26c87
1 file changed
src/reminders/messages/simpleTaskReportMessage.ts
@@ -23,7 +23,8 @@ export const simpleTaskReportMessage = async ({
23
!hasUrgent && !hasUnassigned
24
? "Nothing urgent or unassigned today! 🐀🥂"
25
: "Check out all upcoming tasks [here.](https://github.com/orgs/CarletonComputerScienceSociety/projects/18) 👀";
26
-
+ const urgentItemsLinkThreshold = 5
27
+ const urgentItemsLinkBool = urgentItems.length <= urgentItemsLinkThreshold
28
return {
29
title: `Daily Task Reminder ${randomEmoji}`,
30
message: `${baseMessage}\n\n💡 **Fun Fact**: ${randomFact}.`,
@@ -33,7 +34,7 @@ export const simpleTaskReportMessage = async ({
33
34
{
35
title: "🔥 Urgent & Overdue",
36
items: urgentItems,
- includeLinks: true,
37
+ includeLinks: urgentItemsLinkBool,
38
},
39
]
40
: []),
0 commit comments