Skip to content

Commit e811f3b

Browse files
GiteaBotcharles7668
authored andcommitted
Fix commit_status problem when testing (go-gitea#29672) (go-gitea#29675)
Backport go-gitea#29672 by @charles7668 Close go-gitea#29661 fix go-gitea#29656 Co-authored-by: charles <[email protected]> (cherry picked from commit 1f89763)
1 parent 66061d2 commit e811f3b

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
@@ -58,7 +58,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus,
5858
}
5959
}
6060

61-
if matchedCount == 0 {
61+
if matchedCount == 0 && returnedStatus == structs.CommitStatusSuccess {
6262
status := git_model.CalcCommitStatus(commitStatuses)
6363
if status != nil {
6464
return status.State

0 commit comments

Comments
 (0)