Skip to content

Commit 34ad085

Browse files
charles7668GiteaBot
andcommitted
Fix commit_status problem when testing (go-gitea#29672)
Close go-gitea#29661 fix go-gitea#29656 Co-authored-by: Giteabot <[email protected]>
1 parent a129c0c commit 34ad085

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)