Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-12-01 18:47:28 +0300
committerSean McGivern <sean@gitlab.com>2017-12-04 14:32:36 +0300
commite7c64c9da34909c7f67b7da48771d317ef20d159 (patch)
tree2e5a4085d3242a1fa701b280b028b88501ff3f43 /changelogs
parente0f84130567dc34edf1ae75fcf595e24991d2fa9 (diff)
Fix watch level for mentions in description
For a user with the mention notification level set, the type of their corresponding NotificationRecipient must be :mention for them to receive an email. We set this correctly on notes, but we weren't adding it on new issues or MRs - perhaps because these users are also participants. But the type of the NotificationRecipient in that case would be :participant, not mention, so we have to add the mentioned users manually when creating an issue or MR. When editing an issue or MR, and there are newly-mentioned users to email, we still use the :new_issue and :new_merge_request actions, so this works for that case as well.
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/38862-email-notifications-not-sent-as-expected.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/changelogs/unreleased/38862-email-notifications-not-sent-as-expected.yml b/changelogs/unreleased/38862-email-notifications-not-sent-as-expected.yml
new file mode 100644
index 00000000000..6b1b309ab14
--- /dev/null
+++ b/changelogs/unreleased/38862-email-notifications-not-sent-as-expected.yml
@@ -0,0 +1,6 @@
+---
+title: Fix sending notification emails to users with the mention level set who were
+ mentioned in an issue or merge request description
+merge_request:
+author:
+type: fixed