流水线查询返回字段修改

This commit is contained in:
moshenglv 2021-01-19 11:10:47 +08:00
parent 5e0cdba1f9
commit 05416339e5
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@
# updated_at :datetime not null
# pipeline_status :string(50) default("unknown"), not null
# login :string(255)
# sync :integer default("0"), not null
# project_id :integer
#
class Ci::Pipeline < Ci::LocalBase

View File

@ -2,5 +2,7 @@ json.id pipeline.id
json.pipeline_name pipeline.pipeline_name
json.pipeline_status pipeline.pipeline_status
json.file_name pipeline.file_name
json.sync pipeline.sync
json.project_id pipeline.project_id
json.created_at pipeline.created_at.strftime("%Y-%m-%d %H:%M:%S")
json.updated_at pipeline.updated_at.strftime("%Y-%m-%d %H:%M:%S")