forgejo/routers/repo
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
..
activity.go
attachment.go
blame.go
branch.go
commit.go
compare.go
download.go Add missed close in ServeBlobLFS (#8527) 2019-10-16 06:55:31 +01:00
editor.go
editor_test.go
http.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
issue.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
issue_dependency.go
issue_label.go Move issue label operations to issue service package (#8553) 2019-10-19 12:48:29 +03:00
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_timetrack.go
issue_watch.go
main_test.go
middlewares.go
milestone.go
pull.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
pull_review.go Fix review webhooks (#8570) 2019-10-18 16:33:19 +08:00
release.go
release_test.go
repo.go
search.go
setting.go Move mirror to a standalone package from models (#7486) 2019-10-01 21:40:17 +08:00
setting_protected_branch.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
settings_test.go
topic.go
view.go Allows external rendering of other filetypes 2 (#8300) 2019-10-21 07:54:18 +01:00
webhook.go
wiki.go
wiki_test.go