app/models/merge_request.rb
# Return the set of issues that will be closed if this merge request is accepted.
Return the set of issues that will be closed if this merge request is accepted.
Return the set of issues that will be closed if this merge request is accepted .
def closes_issues(current_user = self.author)
    if target_branch == project.default_branch
      messages = commits.map(&:safe_message) << description
      Gitlab::ClosingIssueExtractor.new(project, current_user).
        closed_by_message(messages.join("\n"))
    else
      []
    end
  end
def closes_issues ( current_user = self . author ) if target_branch == project . default_branch messages = commits . map ( & :safe_message ) << description Gitlab :: ClosingIssueExtractor . new ( project , current_user ) . closed_by_message ( messages . join ( "\n" ) ) else [ ] end end
Return the set of issues that will be closed if this merge request is accepted.
Return the set of issues that will be closed if this merge request is accepted .
current_user
author