forkjo/services/pull
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
..
commit_status.go If no specific context is required for status check, require an overall success (#8318) 2019-09-30 10:33:40 +08:00
lfs.go Extract actions on new pull request from models to pulls service and move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull (#8218) 2019-09-27 08:22:36 +08:00
merge.go Fix bug on pull requests when transfer head repository (#8564) 2019-10-18 19:13:31 +08:00
pull.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
review.go Improve webhooks (#8583) 2019-10-18 23:42:04 +01:00