新增: 分支接口文档

This commit is contained in:
2022-07-15 14:40:35 +08:00
parent 24d83133e7
commit b8d4b15b40
4 changed files with 101 additions and 11 deletions

View File

@@ -18,6 +18,9 @@ json.protected branch['protected']
json.user_can_push branch['user_can_push']
json.user_can_merge branch['user_can_merge']
json.commit_id branch['commit_id']
json.commit_time_from_now branch['commit_time']
json.commit_time_from_now time_from_now(branch['commit_time'].to_time)
json.commit_time branch['commit_time']
json.default_branch branch['default_branch']
json.default_branch branch['default_branch']
json.http_url render_http_url(@project)
json.zip_url render_zip_url(@owner, @project.repository, branch['name'])
json.tar_url render_tar_url(@owner, @project.repository, branch['name'])