Allow GitLab to send email notifications
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3154890. -->
Reported by: [drumm](https://www.drupal.org/user/3064)
Related to !25
>>>
<p>We initially kept GitLab email notifications off since all of the activity from importing and setting maintainers would have been useless noise. Even ongoing notifications would have been noisy at times, which I think might be all clean up with issues like <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/versioncontrol_gitlab/issues/3137571" title="Status: Closed (fixed)">#3137571: Change project member syncing to sync only added and removed maintainers</a></span>.</p>
<p>Today, GitLab’s notifications should be generally good. For example, commenting on individual commits goes into some activity streams, but you really have to look for these discussions to find them. And we can have GitLab solve some issues like <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/sshkey/issues/2014861" title="Status: Active">#2014861: Add email notifications for SSH key changes</a></span>.</p>
<h3>Remaining tasks</h3>
<ul>
<li>Audit what emails GitLab would be sending, adjust configuration options as necessary. <a href="https://git.drupalcode.org/help/user/profile/notifications">https://git.drupalcode.org/help/user/profile/notifications</a></li>
<li>We set the primary email on GitLab accounts to addresses like <code>drumm@3064.no-reply.drupal.org</code>, so commits made via GitLab’s web UI don’t unintentionally disclose personal email addresses. These of course don’t deliver email. GitLab allows setting a separate notification email.</li>
<li>Configure GitLab to be able to send outbound email, routing outbound mail to <code>*@*.no-reply.drupal.org</code> to /dev/null
</li><li>Allow access to <a href="https://git.drupalcode.org/profile/notifications">https://git.drupalcode.org/profile/notifications</a> in GitLab.</li>
<li>Link to <code>/profile/notifications</code> from Drupal user edit profile.
</li><li><del>Turn on notifications for everyone - update all GitLab notification email addresses to the primary address in Drupal. Maybe send a one-time mail to all Git users to let them know about the new options.</del>
</li></ul>
<p><img src="https://www.drupal.org/files/issues/2020-11-18/Screen%20Shot%202020-11-18%20at%207.04.52%20AM.png" alt=""></p>
issue