When the optional owner field is set sync2jira will alert the owner (via email) if any duplicate issues are not closed.
1 new commit added
Mailer gets config values from enviormental variables
Nice!
Can you add an additional config option for a list of global admins (i.e., rbean@email.com and spremkum@email.com) such that we get cc'd on all these notifications.
rbean@email.com
spremkum@email.com
I can imagine a situation where an owner of a downstream project will get one of these emails, and they would want to reply-all to ask "what am I supposed to do about this?"
adding admin support for emails
This Mailer().method(...)is an anti-pattern in my opinion.
Mailer().method(...)
https://www.youtube.com/watch?v=o9pEzgHorH0
Consider removing the class, and keeping only the callable such that in this module you would write from sync2jira.mailer import send_mail and then send_mail(recipients=....).
from sync2jira.mailer import send_mail
send_mail(recipients=....)
Consider the comment above. It's not a blocker. You have my :+1: to merge without changing anything.
Removing mailer class and replacing with static class
+1 to that idea. Changed it in the last commit
4 new commits added
Removing mailer class and replacing with static functions
Adding support to email owners in the situation that duplicate issues are created
Removing mailer class and replacing with static function
Pull-Request has been merged by sidpremkumar
When the optional owner field is set sync2jira will alert the owner (via email) if any duplicate issues are not closed.