Browse Source

Fix bug on pull view when required status check no ci result (#10648)

for-closed-social
Lunny Xiao 4 years ago
committed by GitHub
parent
commit
a5281895c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      services/pull/commit_status.go

+ 5
- 0
services/pull/commit_status.go View File

@ -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

Loading…
Cancel
Save