Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing
This commit is contained in:
parent
78f221d12e
commit
512c870ed4
|
|
@ -573,14 +573,12 @@ class MergeRequest < ActiveRecord::Base
|
||||||
closing_issues = []
|
closing_issues = []
|
||||||
|
|
||||||
if target_branch == project.default_branch
|
if target_branch == project.default_branch
|
||||||
messages = [description]
|
|
||||||
|
|
||||||
ext = Gitlab::ReferenceExtractor.new(project, current_user)
|
ext = Gitlab::ReferenceExtractor.new(project, current_user)
|
||||||
ext.analyze(messages.join("\n"))
|
ext.analyze(description)
|
||||||
|
|
||||||
issues = ext.issues
|
issues = ext.issues
|
||||||
closing_issues = Gitlab::ClosingIssueExtractor.new(project, current_user).
|
closing_issues = Gitlab::ClosingIssueExtractor.new(project, current_user).
|
||||||
closed_by_message(messages.join("\n"))
|
closed_by_message(description)
|
||||||
end
|
end
|
||||||
|
|
||||||
issues - closing_issues
|
issues - closing_issues
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue