Commit 2831ad92 authored by Robert Speicher's avatar Robert Speicher

Merge branch '191455-add-project-id-to-mr-noteable' into 'master'

Expose project_id to merge request notable data

See merge request gitlab-org/gitlab!34412
parents a9fa327f 650a3c9c
......@@ -50,6 +50,8 @@ class MergeRequestNoteableEntity < IssuableEntity
merge_request.project.archived?
end
expose :project_id
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