Special GitLab references not rendered in releases
Problem to Solve
Currently, the special GitLab references
do not behave the same across Release Notes for a Release created by a Tag and the Release Page.
Example
If you use special gitlab references into release notes of a tag (ie: reference to an issue), this reference provide a link in tags page: perfect.
When you look at the release page (Project -> Releases) => the link does not exists.
#<issue_number>
, would be rendered as <current_repo/issues/<issue_number>
Proposal
Match the linking functionality and behavior across the Release Page and Release Notes.
We need to explicitly provide the current user to the markdown_field
helper in lib/api/entities.rb
expose :description
expose :description_html do |entity|
- MarkupHelper.markdown_field(entity, :description)
+ MarkupHelper.markdown_field(entity, :description, current_user: options[:current_user])
end
expose :created_at
Edited by Krasimir Angelov