mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 14:59:51 +08:00
ADD sha for get trsitie-pileline.yml file api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user