1
0
Fork 0
forgejo/services
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
..
comments Improve webhooks (#8583) 2019-10-18 23:42:04 +01:00
externalaccount Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
gitdiff Move git diff codes from models to services/gitdiff (#7889) 2019-09-05 22:20:09 -04:00
issue Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
mailer Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
milestone move some milestone functions to a standalone package (#8213) 2019-09-18 08:17:12 +08:00
mirror Move sync mirror actions to mirror service package (#8518) 2019-10-16 10:56:59 +01:00
pull Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
release Move mirror to a standalone package from models (#7486) 2019-10-01 21:40:17 +08:00