BigW Consortium Gitlab

Commit 512c870e by Gabriel Gizotti

Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing

parent 78f221d1
......@@ -573,14 +573,12 @@ class MergeRequest < ActiveRecord::Base
closing_issues = []
if target_branch == project.default_branch
messages = [description]
ext = Gitlab::ReferenceExtractor.new(project, current_user)
ext.analyze(messages.join("\n"))
ext.analyze(description)
issues = ext.issues
closing_issues = Gitlab::ClosingIssueExtractor.new(project, current_user).
closed_by_message(messages.join("\n"))
closed_by_message(description)
end
issues - closing_issues
......
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