mirror of
https://github.com/go-gitea/gitea
synced 2025-08-26 03:18:28 +00:00
Only update merge_base if not already merged (#10909)
* Only update merge_base if not already merged Fix #10766 Signed-off-by: Andrew Thornton <art27@cantab.net> * Prevent race in transfer pull request * Update services/pull/pull.go
This commit is contained in:
@@ -47,7 +47,7 @@ func checkAndUpdateStatus(pr *models.PullRequest) {
|
||||
|
||||
// Make sure there is no waiting test to process before leaving the checking status.
|
||||
if !pullRequestQueue.Exist(pr.ID) {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user