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/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
5 years ago
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
branch.go Use gitea forked macaron (#7933) 6 years ago
collaborators.go Use gitea forked macaron (#7933) 6 years ago
commits.go API method to list all commits of a repository (#6408) 6 years ago
file.go don't ignore error message (#8550) 5 years ago
fork.go Use gitea forked macaron (#7933) 6 years ago
git_hook.go Move sdk structs to modules/structs (#6905) 6 years ago
git_ref.go api: fix multiple bugs with statuses endpoints (#7785) 6 years ago
hook.go fix wrong email when use gitea as OAuth2 provider (#7640) 6 years ago
hook_test.go API endpoint for testing webhook (#3550) 7 years ago
issue.go Mail assignee when issue/pull request is assigned (#8546) 5 years ago
issue_comment.go Move create issue comment to comments package (#8212) 5 years ago
issue_label.go Move issue label operations to issue service package (#8553) 5 years ago
issue_tracked_time.go Use gitea forked macaron (#7933) 6 years ago
key.go Use gitea forked macaron (#7933) 6 years ago
label.go Use gitea forked macaron (#7933) 6 years ago
main_test.go API endpoint for testing webhook (#3550) 7 years ago
milestone.go Display ui time with customize time location (#7792) 6 years ago
pull.go Mail assignee when issue/pull request is assigned (#8546) 5 years ago
release.go Extract actions on deletereleasebyid from models to release service (#8219) 5 years ago
release_attachment.go Fix API for edit and delete release attachment (#8285) 5 years ago
repo.go Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751) 5 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 6 years ago
star.go Use gitea forked macaron (#7933) 6 years ago
status.go Use gitea forked macaron (#7933) 6 years ago
subscriber.go Use gitea forked macaron (#7933) 6 years ago
tag.go Adds details about what tags can use the Git tags API (#7989) 6 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 5 years ago
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago