Skip to content

Commit 117dcf1

Browse files
authored
Set the initial commit status to Success otherwise it will always be Pending (#10317) (#10318)
Backport #10317 The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.
1 parent 4529a26 commit 117dcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/pull/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, re
2323
return structs.CommitStatusSuccess
2424
}
2525

26-
var returnedStatus = structs.CommitStatusPending
26+
var returnedStatus = structs.CommitStatusSuccess
2727
for _, ctx := range requiredContexts {
2828
var targetStatus structs.CommitStatusState
2929
for _, commitStatus := range commitStatuses {

0 commit comments

Comments
 (0)