summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-02 11:24:55 -0400
committerUnknwon <u@gogs.io>2015-09-02 11:24:55 -0400
commit842770d7fbc72789d6df885da7ec5a2d4070f25f (patch)
tree1b2ff56263f8ae35cb4a0b77011584a566822b6b /models/issue.go
parent5da306c0e5a2939b836d5ec00a0984a2c30e0f9f (diff)
downloadgitea-842770d7fbc72789d6df885da7ec5a2d4070f25f.tar.gz
gitea-842770d7fbc72789d6df885da7ec5a2d4070f25f.zip
add merger info and news feed
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go
index fff33cf369..dd6a87ead7 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -925,6 +925,8 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository) (err error
}
pr.HasMerged = true
+ pr.Merged = time.Now()
+ pr.MergerID = doer.Id
if _, err = sess.Id(pr.ID).AllCols().Update(pr); err != nil {
return fmt.Errorf("update pull request: %v", err)
}