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/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
5 years ago
..
admin Password Complexity Checks (#6230) 5 years ago
convert Hide some user information via API if user have no enough permission (#8655) 5 years ago
misc Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 5 years ago
org API endpoint for searching teams. (#8108) 5 years ago
repo Mail assignee when issue/pull request is assigned (#8546) 5 years ago
swagger Add API endpoint for accessing repo topics (#7963) 5 years ago
user Fix 500 when getting user as unauthenticated user (#8653) 5 years ago
utils Implement webhook branch filter (#7791) 5 years ago
api.go Revert "API should follow RequireSignInView (#8654)" (#8675) 5 years ago