|
|
|
@@ -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' |
|
|
|
|