From ffab139c9193a70ed76d83a4655e82c74af52b25 Mon Sep 17 00:00:00 2001 From: Kazuki Sawada Date: Fri, 6 Oct 2017 06:25:40 +0900 Subject: [PATCH] table `pull_request` wasn't updated correctly (#2649) * Fix: table `pull_request` won't be updated correctly * Update also status column when manually merged --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/pull.go b/models/pull.go index ae6d13ed79..4b928c8d9b 100644 --- a/models/pull.go +++ b/models/pull.go @@ -422,7 +422,7 @@ func (pr *PullRequest) setMerged() (err error) { if err = pr.Issue.changeStatus(sess, pr.Merger, pr.Issue.Repo, true); err != nil { return fmt.Errorf("Issue.changeStatus: %v", err) } - if _, err = sess.ID(pr.ID).Cols("has_merged").Update(pr); err != nil { + if _, err = sess.ID(pr.ID).Cols("has_merged, status, merged_commit_id, merger_id, merged_unix").Update(pr); err != nil { return fmt.Errorf("update pull request: %v", err) } -- 2.39.5