Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-06-23 13:18:52 +0300
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-06-23 15:50:03 +0300
commit9b2ae90d2cac9184f9c66051e8040559771dac98 (patch)
tree08b0ac6af5e8c9ab599b40f7c9356f0fd1d2b15a /lib/ci
parent13d39971f33e4064bd5c8da1865cc874e1005e52 (diff)
Remove references to build in pipeline charts
Being the good boyscouts, but mainly because of [the comment in the review](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12378#note_33302115) the words used for classes and variables are changed to not use builds anymore.
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/charts.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ci/charts.rb b/lib/ci/charts.rb
index ca09410838d..872e418c788 100644
--- a/lib/ci/charts.rb
+++ b/lib/ci/charts.rb
@@ -33,13 +33,13 @@ module Ci
end
class Chart
- attr_reader :labels, :total, :success, :project, :build_times
+ attr_reader :labels, :total, :success, :project, :pipeline_times
def initialize(project)
@labels = []
@total = []
@success = []
- @build_times = []
+ @pipeline_times = []
@project = project
collect
@@ -101,14 +101,14 @@ module Ci
end
end
- class BuildTime < Chart
+ class PipelineTime < Chart
def collect
commits = project.pipelines.last(30)
commits.each do |commit|
@labels << commit.short_sha
duration = commit.duration || 0
- @build_times << (duration / 60)
+ @pipeline_times << (duration / 60)
end
end
end