Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b6a9dce1
Commit
b6a9dce1
authored
Jan 02, 2019
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make find_actual_head_pipeline private method
a
parent
0d9b801a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
app/models/merge_request.rb
app/models/merge_request.rb
+7
-5
No files found.
app/models/merge_request.rb
View file @
b6a9dce1
...
...
@@ -1300,11 +1300,6 @@ class MergeRequest < ActiveRecord::Base
.
find_by
(
sha:
diff_base_sha
)
end
def
find_actual_head_pipeline
source_project
&
.
ci_pipelines
&
.
latest_for_merge_request
(
self
,
source_branch
,
diff_head_sha
)
end
def
discussions_rendered_on_frontend?
true
end
...
...
@@ -1348,4 +1343,11 @@ class MergeRequest < ActiveRecord::Base
source_project
.
repository
.
squash_in_progress?
(
id
)
end
private
def
find_actual_head_pipeline
source_project
&
.
ci_pipelines
&
.
latest_for_merge_request
(
self
,
source_branch
,
diff_head_sha
)
end
end
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