]> source.dussan.org Git - gitea.git/commit
Fix duplicate status check contexts (#30660) (#30779)
authorZettat123 <zettat123@gmail.com>
Wed, 1 May 2024 02:10:37 +0000 (10:10 +0800)
committerGitHub <noreply@github.com>
Wed, 1 May 2024 02:10:37 +0000 (02:10 +0000)
commit99e89e57bc4d2b3a3cd6c3068f818a0c7e8cec28
tree858bdaef88a0e33427243aec530870bf0c0976e0
parentab344a36e3f98f39ebb995288ce30a5c0000811d
Fix duplicate status check contexts (#30660) (#30779)

Backport #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