1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/api/v1
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
..
admin Password Complexity Checks (#6230) 2019-10-14 16:24:26 +01:00
convert Hide some user information via API if user have no enough permission (#8655) 2019-10-24 10:52:17 +08:00
misc Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
org API endpoint for searching teams. (#8108) 2019-10-01 13:32:28 +08:00
repo Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
swagger Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
user Fix 500 when getting user as unauthenticated user (#8653) 2019-10-24 09:18:41 +08:00
utils Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
api.go Revert "API should follow RequireSignInView (#8654)" (#8675) 2019-10-24 22:10:48 +01:00