Commit 20cac04e authored by jakeburden's avatar jakeburden

Add project id to merge request notable data

parent fb917f7b
......@@ -50,6 +50,10 @@ class MergeRequestNoteableEntity < IssuableEntity
merge_request.project.archived?
end
expose :project_id do |merge_request|
merge_request.project.id
end
expose :archived_project_docs_path, if: -> (merge_request) { merge_request.project.archived? } do |merge_request|
help_page_path('user/project/settings/index.md', anchor: 'archiving-a-project')
end
......
......@@ -32,7 +32,8 @@
},
"is_project_archived": { "type": "boolean" },
"locked_discussion_docs_path": { "type": "string" },
"archived_project_docs_path": { "type": "string" }
"archived_project_docs_path": { "type": "string" },
"project_id": { "type": "integer"}
},
"additionalProperties": false
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment