summaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-03-07 15:33:20 +0800
committerGitHub <noreply@github.com>2020-03-07 07:33:20 +0000
commita5281895c71971e5ad4565445a17374e395aafa2 (patch)
treeb63c072ded34b0969c99c00d2afaa4aef800667f /services/pull
parent57c7a7aa721d3422fab3ea297cab5969e72e63f5 (diff)
downloadgitea-a5281895c71971e5ad4565445a17374e395aafa2.tar.gz
gitea-a5281895c71971e5ad4565445a17374e395aafa2.zip
Fix bug on pull view when required status check no ci result (#10648)
Diffstat (limited to 'services/pull')
-rw-r--r--services/pull/commit_status.go5
1 files changed, 5 insertions, 0 deletions
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