diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-22 01:08:42 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-11-21 12:08:42 -0500 |
commit | d7ac9727bb5046118915cbb26b2dac1b7b27c9d4 (patch) | |
tree | c3a2209dcc3482506045706d426d95b3c83454fb /models/pull.go | |
parent | d5261b9aab83138e31cbe02b1da9adc658ed400f (diff) | |
download | gitea-d7ac9727bb5046118915cbb26b2dac1b7b27c9d4.tar.gz gitea-d7ac9727bb5046118915cbb26b2dac1b7b27c9d4.zip |
Move merge actions to notification (#9024)
* Move merge actions to notification
* Add missing mail notification
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/pull.go b/models/pull.go index b25c52571d..174faee97a 100644 --- a/models/pull.go +++ b/models/pull.go @@ -152,6 +152,9 @@ func (pr *PullRequest) loadIssue(e Engine) (err error) { } pr.Issue, err = getIssueByID(e, pr.IssueID) + if err == nil { + pr.Issue.PullRequest = pr + } return err } |