mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
10 lines
207 B
Ruby
10 lines
207 B
Ruby
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
|