mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
ADD edit protected branch api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user