gitea/models/git
Nicolas 4747dd68bd
Update Combine method to treat warnings as failures and adjust tests (#37048)
Treat Commit Status Warnings as errors

> The root problem is that the definition of "warning" are different
across systems.
> 
> * Sometimes, "warning" is treated as "acceptable" (Gitea 1.25)
> * Sometimes, "warning" is mapped from "Result.UNSTABLE", which means
"there are test failures" and it is "failure" in Gitea
> 
> **To avoid breaking existing users, the best choice is to revert the
behavior on Gitea side: treat "warning" as "error".**


https://github.com/go-gitea/gitea/issues/37042#issuecomment-4158231611

fixes https://github.com/go-gitea/gitea/issues/37042

---------

Signed-off-by: Nicolas <bircni@icloud.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-31 17:22:18 +00:00
..
branch.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
branch_list.go
branch_test.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
commit_status.go Add quick approve button on PR page (#35678) 2025-10-20 18:46:37 +08:00
commit_status_summary.go Keeping consistent between UI and API about combined commit status state and fix some bugs (#34562) 2025-06-09 04:05:33 +00:00
commit_status_test.go Update Combine method to treat warnings as failures and adjust tests (#37048) 2026-03-31 17:22:18 +00:00
lfs.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
lfs_lock.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
lfs_lock_list.go
lfs_lock_test.go LFS locks must belong to the intended repo (#36344) 2026-01-11 12:57:58 +02:00
lfs_test.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
main_test.go
protected_branch.go Fix issue label deletion with Actions tokens (#37013) 2026-03-29 09:21:14 +00:00
protected_branch_list.go Replace gobwas/glob package (#35478) 2025-09-13 18:01:00 +00:00
protected_branch_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
protected_branch_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
protected_tag.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_tag_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00