diff options
author | charles <30816317+charles7668@users.noreply.github.com> | 2024-03-08 23:43:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 16:43:48 +0100 |
commit | 0c273f12e0b5d6dc2b80e2e6b51b2deaf15608b1 (patch) | |
tree | 95766dcc2e9eda345a4427566f9fb1d5cc1c8d8d | |
parent | a3cfe6f39ba33cea305de592a006727857014c53 (diff) | |
download | gitea-0c273f12e0b5d6dc2b80e2e6b51b2deaf15608b1.tar.gz gitea-0c273f12e0b5d6dc2b80e2e6b51b2deaf15608b1.zip |
Fix commit_status problem when testing (#29672)
Close #29661
fix #29656
Co-authored-by: Giteabot <teabot@gitea.io>
-rw-r--r-- | services/pull/commit_status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index 07e9eb7959..653bfe6bcb 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -59,7 +59,7 @@ func MergeRequiredContextsCommitStatus(commitStatuses []*git_model.CommitStatus, } } - if matchedCount == 0 { + if matchedCount == 0 && returnedStatus == structs.CommitStatusSuccess { status := git_model.CalcCommitStatus(commitStatuses) if status != nil { return status.State |