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
@@ -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