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
+1 -1
View File
@@ -1175,7 +1175,7 @@ func registerWebRoutes(m *web.Router, webAuth *AuthMiddleware) {
m.Combo("/edit").Get(repo_setting.SettingsProtectedBranch).
Post(web.Bind(forms.ProtectBranchForm{}), context.RepoMustNotBeArchived(), repo_setting.SettingsProtectedBranchPost)
m.Post("/{id}/delete", repo_setting.DeleteProtectedBranchRulePost)
m.Post("/priority", web.Bind(forms.ProtectBranchPriorityForm{}), context.RepoMustNotBeArchived(), repo_setting.UpdateBranchProtectionPriories)
m.Post("/priority", context.RepoMustNotBeArchived(), repo_setting.UpdateBranchProtectionPriories)
})
m.Group("/tags", func() {