summaryrefslogtreecommitdiffstats
path: root/services/pull/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/check.go')
-rw-r--r--services/pull/check.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/pull/check.go b/services/pull/check.go
index 74185b6815..b1b9505823 100644
--- a/services/pull/check.go
+++ b/services/pull/check.go
@@ -194,10 +194,14 @@ func TestPullRequests(ctx context.Context) {
if err != nil {
log.Error("GetPullRequestByID[%s]: %v", prID, err)
continue
+ } else if pr.Status != models.PullRequestStatusChecking {
+ continue
} else if manuallyMerged(pr) {
continue
} else if err = TestPatch(pr); err != nil {
log.Error("testPatch[%d]: %v", pr.ID, err)
+ pr.Status = models.PullRequestStatusError
+ pr.UpdateCols("status")
continue
}
checkAndUpdateStatus(pr)