1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/modules/notification
flozzone a39287cd4e
Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707)
I want to address #17892, where emails notifications are not sent to assignees (issue and PR) and reviewers (PR) when they have the email setting Only email on mention enabled.

From the user experience perspective, when a user gets a issue/PR assigned or a PR review request, he/she would expect to be implicitly mentioned since the assignment or request is personal and targeting a single person only. Thus I see #17892 as a bug. Could we therefore mark this ticket as such?

The changed code just explicitly checks for the EmailNotificationsOnMention setting beside the existing EmailNotificationsEnabled check. Too rude?

@lunny mentioned a mock mail server for tests, is there something ready. How could I make use of it?

#12774 (comment)

Fix #17892
2022-02-12 07:17:34 +00:00
..
action format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
base format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
indexer format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mail Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) 2022-02-12 07:17:34 +00:00
ui Pause queues (#15928) 2022-01-22 21:22:14 +00:00
webhook format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
notification.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00