phac-nml / irida-next

IRIDA Next
https://phac-nml.github.io/irida-next/
Apache License 2.0
8 stars 2 forks source link

Pipeline Mailer: Automated Pipelines #575

Closed deepsidhu85 closed 2 months ago

deepsidhu85 commented 2 months ago

Summary

Currently when a pipeline completes or errors the submitter of the pipeline is notified via email. With automated pipelines an automation bot is the submitter of the pipeline. Since we can't send an email to an automation bot, managers (owners and maintainers) of the namespace the pipeline was launched from should receive an email

Acceptance criteria

Note: When a project is created an automation bot is automatically created as well. The user can be retrieved in the rails console with PROJECT.namespace.bots.where(user_type: User.user_types[:project_automation_bot]