From 7e0a5b17db208faed3cb121be50b69379eb1d0ae Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 7 Mar 2020 17:32:08 +0800 Subject: [PATCH] Fix bug on pull view when required status check no ci result (#10648) (#10651) --- services/pull/commit_status.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index a4803bfb9f..592aad6fc5 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -35,6 +35,11 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, re if targetStatus == "" { targetStatus = structs.CommitStatusPending + commitStatuses = append(commitStatuses, &models.CommitStatus{ + State: targetStatus, + Context: ctx, + Description: "Pending", + }) } if targetStatus.NoBetterThan(returnedStatus) { returnedStatus = targetStatus