gitea/models/git
Zettat123 7ad5031328
Fix duplicate status check contexts ()
Caused by . 

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" />
..
branch.go Fix rename branch 500 when the target branch is deleted but exist in database ()
branch_list.go Add container.FilterSlice function ()
branch_test.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` ()
commit_status.go Fix duplicate status check contexts ()
commit_status_summary.go Fix commitstatus summary ()
commit_status_test.go Fix duplicate status check contexts ()
lfs.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
lfs_lock.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
main_test.go make writing main test easier ()
protected_banch_list_test.go Fix branch protection priority ()
protected_branch.go Add branch protection setting for ignoring stale approvals ()
protected_branch_list.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` ()
protected_branch_test.go Supports wildcard protected branch ()
protected_tag.go Refactor some legacy code and remove unused code ()
protected_tag_test.go Implement FSFE REUSE for golang files ()