mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 19:55:56 +08:00
更改:tree返回结构体适配以及生成token需新增scopes参数
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
json.total_count @result_object['total_count']
|
||||
json.sha @result_object['sha']
|
||||
json.entries @result_object['tree'].each do |entry|
|
||||
json.total_count @result_object[:data]['total_count'].to_i
|
||||
json.sha @result_object[:data]['sha']
|
||||
json.entries @result_object[:data]['tree'].each do |entry|
|
||||
json.name entry['path']
|
||||
json.mode entry['mode']
|
||||
json.type entry['type'] === 'blob' ? 'file' : 'dir'
|
||||
|
||||
Reference in New Issue
Block a user