in mozci/console/commands/push.py [0:0]
def send_emails(self, total, stats, error_line):
today = datetime.datetime.strftime(datetime.datetime.now(), "%Y-%m-%d")
stats = "\n".join([f"- {stat}" for stat in stats])
environment = self.option("environment")
notify_email(
emails=config.get("emails", {}).get("monitoring"),
subject=f"{environment} classify-eval report generated the {today}",
content=EMAIL_CLASSIFY_EVAL.format(
today=today,
total=total,
error_line=f"**{error_line}**" if error_line else "",
stats=stats,
),
)