diff options
Diffstat (limited to 'lib/api/entities/commit.rb')
-rw-r--r-- | lib/api/entities/commit.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/api/entities/commit.rb b/lib/api/entities/commit.rb new file mode 100644 index 00000000000..7ce97c2c3d8 --- /dev/null +++ b/lib/api/entities/commit.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module API + module Entities + class Commit < Grape::Entity + expose :id, :short_id, :created_at + expose :parent_ids + expose :full_title, as: :title + expose :safe_message, as: :message + expose :author_name, :author_email, :authored_date + expose :committer_name, :committer_email, :committed_date + end + end +end |