summaryrefslogtreecommitdiffstats
path: root/services/pull/check.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-01 13:02:11 +0100
committerGitHub <noreply@github.com>2020-04-01 15:02:11 +0300
commit408bc2c8b5de801887ccf9a9ccc2bb80e0739f2e (patch)
tree013c16490701fc2493d6c5120a4d1d2474972677 /services/pull/check.go
parentfbb0880d3760243fd56985c5e822facd68f58ebe (diff)
downloadgitea-408bc2c8b5de801887ccf9a9ccc2bb80e0739f2e.tar.gz
gitea-408bc2c8b5de801887ccf9a9ccc2bb80e0739f2e.zip
Only update merge_base in checker if not already merged (#10908)
Fix #10766 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'services/pull/check.go')
-rw-r--r--services/pull/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/check.go b/services/pull/check.go
index c877cc84ee..ea91f3a862 100644
--- a/services/pull/check.go
+++ b/services/pull/check.go
@@ -61,7 +61,7 @@ func checkAndUpdateStatus(pr *models.PullRequest) {
}
if !has {
- if err := pr.UpdateCols("merge_base", "status", "conflicted_files"); err != nil {
+ if err := pr.UpdateColsIfNotMerged("merge_base", "status", "conflicted_files"); err != nil {
log.Error("Update[%d]: %v", pr.ID, err)
}
}