Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,10 @@ def main():
# headers={"Content-Type": "application/json"},
# )

# Send Slack notification with summary only
current_date = datetime.now().date()
send_slack_notification(overdue_items, current_date)
# Send Slack notification with summary only if there are issues
if overdue_items:
current_date = datetime.now().date()
send_slack_notification(overdue_items, current_date)

# Exit with error code if there are overdue items
if overdue_items:
Expand Down