Class: Gitlab::Dangerfiles::Weightage::Maintainers Private
- Inherits:
-
Object
- Object
- Gitlab::Dangerfiles::Weightage::Maintainers
- Defined in:
- lib/gitlab/dangerfiles/weightage/maintainers.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #execute ⇒ Object private
-
#initialize(maintainers) ⇒ Maintainers
constructor
private
A new instance of Maintainers.
Constructor Details
#initialize(maintainers) ⇒ Maintainers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Maintainers.
10 11 12 |
# File 'lib/gitlab/dangerfiles/weightage/maintainers.rb', line 10 def initialize(maintainers) @maintainers = maintainers end |
Instance Method Details
#execute ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 |
# File 'lib/gitlab/dangerfiles/weightage/maintainers.rb', line 14 def execute maintainers.each_with_object([]) do |maintainer, weighted_maintainers| add_weighted_reviewer(weighted_maintainers, maintainer, Gitlab::Dangerfiles::Weightage::BASE_REVIEWER_WEIGHT) end end |