ADD edit protected branch api

This commit is contained in:
Jasder
2020-12-04 16:18:27 +08:00
parent b3649f03e7
commit 3f60dd3f83
8 changed files with 163 additions and 15 deletions
@@ -3,9 +3,10 @@ module ProtectedBranches
def call
validate!
save_gitea_protected_branch!
save_protected_branch!
ProtectedBranch.transaction do
save_gitea_protected_branch!
save_protected_branch!
end
protected_branch
end