Fix update branch protection order (#37508)

Regression of changed behavior or Golang JSON v2 package

Fix #37506
This commit is contained in:
wxiaoguang
2026-05-03 00:32:36 +08:00
committed by GitHub
parent 134e86c78c
commit a2a5ef8d0e
3 changed files with 10 additions and 9 deletions

View File

@@ -202,10 +202,6 @@ func (f *ProtectBranchForm) Validate(req *http.Request, errs binding.Errors) bin
return middleware.Validate(errs, ctx.Data, f, ctx.Locale)
}
type ProtectBranchPriorityForm struct {
IDs []int64
}
// WebhookForm form for changing web hook
type WebhookForm struct {
Name string `binding:"MaxSize(255)"`