You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/notification
zeripath 2e36ba0a00
Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) (#18765)
Backport #18707

Addresses #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?

See #12774 (comment)

Fix #17892

Co-authored-by: flozzone <flozzone@gmail.com>
3 years ago
..
action Simplify parameter types (#18006) 3 years ago
base Simplify parameter types (#18006) 3 years ago
indexer Simplify parameter types (#18006) 3 years ago
mail Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) (#18765) 3 years ago
ui Some repository refactors (#17950) 3 years ago
webhook Simplify parameter types (#18006) 3 years ago
notification.go Simplify parameter types (#18006) 3 years ago