]> source.dussan.org Git - gitea.git/commit
Fix duplicate status check contexts (#30660)
authorZettat123 <zettat123@gmail.com>
Tue, 30 Apr 2024 03:53:16 +0000 (11:53 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2024 03:53:16 +0000 (11:53 +0800)
commit7ad50313284db7eec565ad1750108de1444c5a84
tree34770cfe6873c39ad68b2375fbb411b0f35dacf0
parent61b495e5ab604a26c867433e5c5ae5b07267e30f
Fix duplicate status check contexts (#30660)

Caused by #30076.

There may be some duplicate status check contexts when setting status
checks for a branch protection rule. The duplicate contexts should be
removed.

Before:
<img
src="https://github.com/go-gitea/gitea/assets/15528715/97f4de2d-4868-47a3-8a99-5a180f9ac0a3"
width="600px" />

After:
<img
src="https://github.com/go-gitea/gitea/assets/15528715/ff7289c5-9793-4090-ba31-e8cb3c85f8a3"
width="600px" />
models/git/commit_status.go
models/git/commit_status_test.go