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
03c514b1274c
Commit
09114211
authored
Jul 20, 2016
by
Lin Jen-Shin
Browse files
Now we could use normal relation, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347#note_13173842
parent
aa78a04ec788
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
03c514b1
...
...
@@ -431,8 +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
::
Build
.
joins
(
:pipeline
).
merge
(
pipelines
.
latest_successful_for
(
ref
)).
builds
.
where
(
pipeline:
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