mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 23:24:25 +00:00
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.
This commit is contained in:
parent
4529a262c0
commit
117dcf1c02
@ -23,7 +23,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, re
|
|||||||
return structs.CommitStatusSuccess
|
return structs.CommitStatusSuccess
|
||||||
}
|
}
|
||||||
|
|
||||||
var returnedStatus = structs.CommitStatusPending
|
var returnedStatus = structs.CommitStatusSuccess
|
||||||
for _, ctx := range requiredContexts {
|
for _, ctx := range requiredContexts {
|
||||||
var targetStatus structs.CommitStatusState
|
var targetStatus structs.CommitStatusState
|
||||||
for _, commitStatus := range commitStatuses {
|
for _, commitStatus := range commitStatuses {
|
||||||
|
Loading…
Reference in New Issue
Block a user