mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-05 16:26:28 +00:00

The bug has been fixed on v1.22 but not backport to v1.21. This original PR have many refactors so I don't think it's necessary to backport all of them. Fix #28667