Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
3c604cd222dd
Commit
a563f331
authored
Jul 20, 2016
by
Lin Jen-Shin
Browse files
Join on association
parent
b2a8f0fc445e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
3c604cd2
...
...
@@ -431,7 +431,7 @@ def commit(ref = 'HEAD')
# ref can't be HEAD, can only be branch/tag name or SHA
def
latest_successful_builds_for
(
ref
=
default_branch
)
Ci
::
B
uild
.
joins
(
:pipeline
).
merge
(
pipelines
.
latest_successful_for
(
ref
)).
b
uild
s
.
joins
(
:pipeline
).
merge
(
pipelines
.
latest_successful_for
(
ref
)).
latest_successful_with_artifacts
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