BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
512c870e
Commit
512c870e
authored
Nov 28, 2016
by
Gabriel Gizotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing
parent
78f221d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
merge_request.rb
app/models/merge_request.rb
+2
-4
No files found.
app/models/merge_request.rb
View file @
512c870e
...
@@ -573,14 +573,12 @@ class MergeRequest < ActiveRecord::Base
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment