aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/pull.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2023-02-04 13:36:00 +0800
committerGitHub <noreply@github.com>2023-02-04 13:36:00 +0800
commit6d220540c15e68196404951e8b67cac8002d1a6f (patch)
treef6dacfde8af9f17424bccb2833016c98bfc97c69 /internal/route/repo/pull.go
parented51686240ff84e3cc12be8bc4311c529d44faee (diff)
refactor(db): migrate methods off `user.go` (#7334)
Diffstat (limited to 'internal/route/repo/pull.go')
-rw-r--r--internal/route/repo/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/repo/pull.go b/internal/route/repo/pull.go
index 2429ff8b..7eedcb3a 100644
--- a/internal/route/repo/pull.go
+++ b/internal/route/repo/pull.go
@@ -298,7 +298,7 @@ func ViewPullCommits(c *context.Context) {
commits = prInfo.Commits
}
- c.Data["Commits"] = db.ValidateCommitsWithEmails(commits)
+ c.Data["Commits"] = matchUsersWithCommitEmails(c.Req.Context(), commits)
c.Data["CommitsCount"] = len(commits)
c.Success(PULL_COMMITS)
@@ -606,7 +606,7 @@ func PrepareCompareDiff(
return false
}
- c.Data["Commits"] = db.ValidateCommitsWithEmails(meta.Commits)
+ c.Data["Commits"] = matchUsersWithCommitEmails(c.Req.Context(), meta.Commits)
c.Data["CommitCount"] = len(meta.Commits)
c.Data["Username"] = headUser.Name
c.Data["Reponame"] = headRepo.Name