Commit 37817cc31d890f1e79b31ae3d625fbace672451e
1 parent
4e1f1e14
Exists in
master
and in
4 other branches
API: expose project id for milestones
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
lib/api/entities.rb
... | ... | @@ -36,7 +36,9 @@ module Gitlab |
36 | 36 | end |
37 | 37 | |
38 | 38 | class Milestone < Grape::Entity |
39 | - expose :id, :title, :description, :due_date, :closed, :updated_at, :created_at | |
39 | + expose :id | |
40 | + expose (:project_id) {|milestone| milestone.project.id} | |
41 | + expose :title, :description, :due_date, :closed, :updated_at, :created_at | |
40 | 42 | end |
41 | 43 | |
42 | 44 | class Issue < Grape::Entity | ... | ... |