diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 13:50:07 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-11-05 13:50:07 +0200 |
commit | 056df41ed16f6eddf3271caad93a118f97e8b58c (patch) | |
tree | 956f8d0b1dabb1fa9b921b0e153b41c4e575b1e3 /lib/api/entities.rb | |
parent | 3559e3906a005a71183032bc06cf7538fc9d7d05 (diff) | |
download | gitlab-ci-056df41ed16f6eddf3271caad93a118f97e8b58c.tar.gz |
Add Commits API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b6394e9..9f4ea7f 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1,7 +1,15 @@ module API module Entities + class Commit < Grape::Entity + expose :id, :ref, :sha, :project_id, :before_sha, :created_at + expose :status, :finished_at, :duration + expose :git_commit_message, :git_author_name, :git_author_email + expose :builds + end + class Build < Grape::Entity - expose :id, :commands, :path, :ref, :sha, :project_id, :repo_url, :before_sha, :timeout, :allow_git_fetch, :project_name + expose :id, :commands, :path, :ref, :sha, :project_id, :repo_url, + :before_sha, :timeout, :allow_git_fetch, :project_name end class Runner < Grape::Entity |