Skip to content
Snippets Groups Projects
Commit 37817cc3 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

API: expose project id for milestones

parent 4e1f1e14
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -36,7 +36,9 @@ module Gitlab
end
 
class Milestone < Grape::Entity
expose :id, :title, :description, :due_date, :closed, :updated_at, :created_at
expose :id
expose (:project_id) {|milestone| milestone.project.id}
expose :title, :description, :due_date, :closed, :updated_at, :created_at
end
 
class Issue < Grape::Entity
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment