diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-02-13 13:41:35 +0100 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-02-14 09:00:26 +0100 |
commit | b0b4ae1875529cd7ca786bd5eccd49be9a40a038 (patch) | |
tree | e431498a102e05c4371d5be4e2430b91df01cb16 /lib/api/entities.rb | |
parent | bf5e617a10e8df48ff78442f42f2cd6e47f59072 (diff) | |
download | gitlab-ce-b0b4ae1875529cd7ca786bd5eccd49be9a40a038.tar.gz |
API - Include project in commits&blobs search results
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 7838de13c56..1608af97d38 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -274,6 +274,7 @@ module API expose :stats, using: Entities::CommitStats, if: :stats expose :status expose :last_pipeline, using: 'API::Entities::PipelineBasic' + expose :project_id end class Branch < Grape::Entity @@ -1172,6 +1173,7 @@ module API expose :id expose :ref expose :startline + expose :project_id end end end |