forked from Gitlink/forgeplus
ADD sha for get trsitie-pileline.yml file api
This commit is contained in:
parent
3f92d99136
commit
0b9a69ec56
|
@ -2429,6 +2429,7 @@ http://localhost:3000/api/dev_ops/builds/get_trustie_pipeline.json | jq
|
|||
{
|
||||
"name": ".trustie-pipeline.yml",
|
||||
"path": ".trustie-pipeline.yml",
|
||||
"sha": "548sfefsafef48sf485s4f",
|
||||
"content": "..jsaf"
|
||||
}
|
||||
```
|
||||
|
|
|
@ -47,7 +47,7 @@ class DevOps::BuildsController < ApplicationController
|
|||
file = interactor.result
|
||||
return render json: {} if file[:status]
|
||||
|
||||
json = {name: file['name'], path: file['path'], content: render_decode64_content(file['content'])}
|
||||
json = {name: file['name'], path: file['path'], sha: file['sha'], content: render_decode64_content(file['content'])}
|
||||
render json: json
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue