gitlab调用commits接口
This commit is contained in:
parent
211b5c2db9
commit
df8d2f8dd4
|
@ -252,8 +252,11 @@ update
|
||||||
else
|
else
|
||||||
#Modified by young
|
#Modified by young
|
||||||
# (show_error_not_found; return) unless @entries
|
# (show_error_not_found; return) unless @entries
|
||||||
@changesets = @repository.latest_changesets(@path, @rev)
|
g = Gitlab.client
|
||||||
@changesets_count = @repository.latest_changesets(@path, @rev).count
|
p = g.project(@project.gpid)
|
||||||
|
@changesets = g.get ("/projects/#{p}/repository/commits")
|
||||||
|
# @changesets = @repository.latest_changesets(@path, @rev)
|
||||||
|
@changesets_count = @changesets.count
|
||||||
@changesets_latest_coimmit = @changesets.first
|
@changesets_latest_coimmit = @changesets.first
|
||||||
@properties = @repository.properties(@path, @rev)
|
@properties = @repository.properties(@path, @rev)
|
||||||
@repositories = @project.repositories
|
@repositories = @project.repositories
|
||||||
|
|
|
@ -375,7 +375,7 @@ zh:
|
||||||
#
|
#
|
||||||
label_project_new_description: '项目可以是软件开发项目,也可以是协作研究项目。'
|
label_project_new_description: '项目可以是软件开发项目,也可以是协作研究项目。'
|
||||||
field_name: 名称
|
field_name: 名称
|
||||||
field_identifier: 标识
|
field_identifier: 版本库名
|
||||||
field_enterprise_name: 组织名称
|
field_enterprise_name: 组织名称
|
||||||
label_organization_choose: --请选择组织--
|
label_organization_choose: --请选择组织--
|
||||||
text_length_between: "长度必须在 %{min} 到 %{max} 个字符之间。"
|
text_length_between: "长度必须在 %{min} 到 %{max} 个字符之间。"
|
||||||
|
|
Loading…
Reference in New Issue