summaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
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