diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-06-23 12:18:52 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-06-23 14:50:03 +0200 |
commit | 9b2ae90d2cac9184f9c66051e8040559771dac98 (patch) | |
tree | 08b0ac6af5e8c9ab599b40f7c9356f0fd1d2b15a /lib/ci | |
parent | 13d39971f33e4064bd5c8da1865cc874e1005e52 (diff) | |
download | gitlab-ce-9b2ae90d2cac9184f9c66051e8040559771dac98.tar.gz |
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.rb | 8 |
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 |