diff options
author | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-13 23:11:48 +0200 |
---|---|---|
committer | Mehdi Lahmam <mehdi@lahmam.com> | 2017-11-05 21:59:58 +0100 |
commit | 08bc2f946bc788b8a51e7a4136cc83e57d9f707a (patch) | |
tree | 848cb042f2b74c57820fa5dbd776e73cee295457 /lib | |
parent | 1d5f2f9c333534b7004501bcfa52ca873d6a3403 (diff) | |
download | gitlab-ce-08bc2f946bc788b8a51e7a4136cc83e57d9f707a.tar.gz |
Expose `duration` in Job API entity
Closes #35794.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 67cecb6a7ad..398a7906dcb 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -822,6 +822,7 @@ module API class Job < Grape::Entity expose :id, :status, :stage, :name, :ref, :tag, :coverage expose :created_at, :started_at, :finished_at + expose :duration expose :user, with: User expose :artifacts_file, using: JobArtifactFile, if: -> (job, opts) { job.artifacts? } expose :commit, with: Commit |