• Mario de la Ossa's avatar
    Initial work to add notification reason to emails · 23a20c20
    Mario de la Ossa authored
    Adds `#build_notification_recipients` to `NotificationRecipientService`
    that returns the `NotificationRecipient` objects in order to be able to
    access the new attribute `reason`.
    This new attribute is used in the different notifier methods in order to
    add the reason as a header: `X-GitLab-NotificationReason`.
    Only the reason with the most priority gets sent.
new_issue_worker_spec.rb 1.72 KB