aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/home.go')
-rw-r--r--routers/user/home.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index c4e169befd..740a9edc4e 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -319,8 +319,13 @@ func Issues(ctx *context.Context) {
return
}
+ var commitStatus = make(map[int64]*models.CommitStatus, len(issues))
for _, issue := range issues {
issue.Repo = showReposMap[issue.RepoID]
+
+ if isPullList {
+ commitStatus[issue.PullRequest.ID], _ = issue.PullRequest.GetLastCommitStatus()
+ }
}
issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{
@@ -344,6 +349,7 @@ func Issues(ctx *context.Context) {
}
ctx.Data["Issues"] = issues
+ ctx.Data["CommitStatus"] = commitStatus
ctx.Data["Repos"] = showRepos
ctx.Data["Counts"] = counts
ctx.Data["Page"] = paginater.New(total, setting.UI.IssuePagingNum, page, 5)