Skip to content

Commit 7e0a5b1

Browse files
authored
Fix bug on pull view when required status check no ci result (#10648) (#10651)
1 parent 0768823 commit 7e0a5b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/pull/commit_status.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, re
3535

3636
if targetStatus == "" {
3737
targetStatus = structs.CommitStatusPending
38+
commitStatuses = append(commitStatuses, &models.CommitStatus{
39+
State: targetStatus,
40+
Context: ctx,
41+
Description: "Pending",
42+
})
3843
}
3944
if targetStatus.NoBetterThan(returnedStatus) {
4045
returnedStatus = targetStatus

0 commit comments

Comments
 (0)