Browse Source

流水线查询返回字段修改

tags/v3.0.1
moshenglv 5 years ago
parent
commit
05416339e5
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      app/models/ci/pipeline.rb
  2. +2
    -0
      app/views/ci/pipelines/_list.json.jbuilder

+ 2
- 0
app/models/ci/pipeline.rb 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


+ 2
- 0
app/views/ci/pipelines/_list.json.jbuilder 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")

Loading…
Cancel
Save