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 ...@@ -50,6 +50,10 @@ class MergeRequestNoteableEntity < IssuableEntity
merge_request.project.archived? merge_request.project.archived?
end 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| 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') help_page_path('user/project/settings/index.md', anchor: 'archiving-a-project')
end end
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
}, },
"is_project_archived": { "type": "boolean" }, "is_project_archived": { "type": "boolean" },
"locked_discussion_docs_path": { "type": "string" }, "locked_discussion_docs_path": { "type": "string" },
"archived_project_docs_path": { "type": "string" } "archived_project_docs_path": { "type": "string" },
"project_id": { "type": "integer"}
}, },
"additionalProperties": false "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