Refactor: move part of updating protected branch logic to service layer (#33742)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-03-05 19:15:40 +00:00
1 parent df7b61ce9a
commit 0453177b61
4 files changed
+52 -61

No files matched your search

-7
View File
@@ -170,13 +170,6 @@ func (f *RepoSettingForm) Validate(req *http.Request, errs binding.Errors) bindi
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}
// __________ .__
// \______ \____________ ____ ____ | |__
// | | _/\_ __ \__ \ / \_/ ___\| | \
// | | \ | | \// __ \| | \ \___| Y \
// |______ / |__| (____ /___| /\___ >___| /
// \/ \/ \/ \/ \/
// ProtectBranchForm form for changing protected branch settings
type ProtectBranchForm struct {
RuleName string `binding:"Required"`