summaryrefslogtreecommitdiffstats
path: root/services/mailer/notify.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix codeowner detected diff base branch to mergebase (#29783) (#29807)Lunny Xiao2024-03-171-1/+1
| | | | | | | | | | | | | | | Fix #29763 Backport #29783 This PR fixes 2 problems with CodeOwner in the pull request. - Don't use the pull request base branch but merge-base as a diff base to detect the code owner. - CodeOwner detection in fork repositories will be disabled because almost all the fork repositories will not change CODEOWNERS files but it should not be used on fork repositories' pull requests. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Load reviewer before sending notification (#27063)sebastian-sauer2023-09-131-0/+3
| | | | | | | | The [template](https://github.com/go-gitea/gitea/blob/main/templates/mail/issue/default.tmpl#L51) uses the Reviewer.Name property - this was not loaded. Fixes #27035
* Move notification interface to services layer (#26915)Lunny Xiao2023-09-051-20/+20
| | | Extract from #22266
* Move mail notification logic to service layer (#26905)Lunny Xiao2023-09-051-0/+201
Extract from #22266