1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/services/mailer
David Svantesson 6aa3f8bc29 Mail assignee when issue/pull request is assigned (#8546)
* Send email to assigned user

* Only send mail if enabled

* Mail also when assigned through API

* Need to refactor functions from models to issue service

* Refer to issue index rather than ID

* Disable email notifications completly at initalization if global disable

* Check of user enbled mail shall be in mail notification function only

* Initialize notifications from routers init function.

* Use the assigned comment when sending assigned mail

* Refactor so that assignees always added as separate step when new issue/pr.

* Check error from AddAssignees

* Check if user can be assiged to issue or pull request

* Missing return

* Refactor of CanBeAssigned check.

CanBeAssigned shall have same check as UI.

* Clarify function names (toggle rather than update/change), and clean up.

* Fix review comments.

* Flash error if assignees was not added when creating issue/pr

* Generate error if assignee users doesn't exist
2019-10-25 22:46:37 +08:00
..
mail_comment.go Rewrite reference processing code in preparation for opening/closing from comment references (#8261) 2019-10-13 23:29:10 +01:00
mail_issue.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
mail_test.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00
mail.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
mailer.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00
main_test.go Move all mail related codes from models to services/mailer (#7200) 2019-09-24 13:02:49 +08:00