-
Notifications
You must be signed in to change notification settings - Fork 102
Don't send Assigned Ticket Response Time Alert for Gumroad during weekends #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…kends Co-Authored-By: sahil.lavingia@gmail.com <sahil.lavingia@gmail.com>
🤖 Devin AI EngineerOriginal prompt from sahil.lavingia@gmail.com:
I'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
}); | ||
// Don't send alerts during weekends for Gumroad | ||
const now = new Date(); | ||
if (!isWeekend(now) || mailbox.name !== "Gumroad") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all mailboxes not just gumroad
Co-Authored-By: sahil.lavingia@gmail.com <sahil.lavingia@gmail.com>
}); | ||
// Don't send alerts during weekends | ||
const now = new Date(); | ||
if (!isWeekend(now)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do this check at the top of the function so it doesn't run the check at all if it's a weekend
Co-Authored-By: sahil.lavingia@gmail.com <sahil.lavingia@gmail.com>
Signed-off-by: Jono M <reason.koan@gmail.com>
This PR modifies the Assigned Ticket Response Time Alert to not send during weekends for Gumroad, as requested in the Slack channel #gumroad-support.
Link to Devin run: https://app.devin.ai/sessions/5cd5fb95455342aca93adb8b279f4cc9