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:
@@ -0,0 +1,9 @@
|
||||
json.branch_name @branch['name']
|
||||
json.protected @branch['protected']
|
||||
json.protected_branch do
|
||||
if @protected_branch
|
||||
json.partial! @protected_branch, as: :protected_branch
|
||||
else
|
||||
json.nil!
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user