change param type
This commit is contained in:
parent
5bbec0b311
commit
49eb0cf73a
|
@ -77,7 +77,7 @@ module Mobile
|
|||
params do
|
||||
requires :username, type: String
|
||||
requires :password, type: String
|
||||
requires :shaList, type: Array
|
||||
requires :shaList, type: Array[String]
|
||||
requires :branch, type: String
|
||||
requires :ownername, type: String
|
||||
requires :reponame, type: String
|
||||
|
@ -88,6 +88,7 @@ module Mobile
|
|||
if owner
|
||||
project = Project.find_by_user_id_name(owner.id, params[:reponame])
|
||||
if project
|
||||
Rails.logger.info params[:shaList].length
|
||||
g = Gitlab.client # 用于通过gitlab api进行查询
|
||||
result = []
|
||||
for i in 0..params[:shaList].length
|
||||
|
|
Loading…
Reference in New Issue