]> source.dussan.org Git - gitea.git/commit
Fix duplicate status check contexts (#30660) (#30776)
authorZettat123 <zettat123@gmail.com>
Tue, 30 Apr 2024 08:01:57 +0000 (16:01 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2024 08:01:57 +0000 (16:01 +0800)
commitaa3c76159abf908a14187e6b1e319a198451ffff
treea3d86a9a8d95c64d3d905bd31b7c8b9c135212a8
parent224c48e16b58d760c59c47e0bbf951f1b8913234
Fix duplicate status check contexts (#30660) (#30776)

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