aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-10-18 19:23:05 +0800
committerGitHub <noreply@github.com>2018-10-18 19:23:05 +0800
commitea619b39b2f2a3c1fb5ad28ebd4a269b2f822111 (patch)
treeef101ad2b39dc5be1744e4488bcdd5beab16e45d /models/issue.go
parentdd62ca7ba9b49e799a8bea896cff1b209f813b7e (diff)
downloadgitea-ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111.tar.gz
gitea-ea619b39b2f2a3c1fb5ad28ebd4a269b2f822111.zip
Add notification interface and refactor UI notifications (#5085)
* add notification interface and refactor UI notifications * add missing methods on notification interface and notifiy only issue status really changed * implement NotifyPullRequestReview for ui notification
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index a327410435..8dc0466752 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -112,6 +112,10 @@ func (issue *Issue) GetPullRequest() (pr *PullRequest, err error) {
}
pr, err = getPullRequestByIssueID(x, issue.ID)
+ if err != nil {
+ return nil, err
+ }
+ pr.Issue = issue
return
}