lib/gitlab_reviewbot/plugin.rb in danger-gitlab_reviewbot-1.0.2 vs lib/gitlab_reviewbot/plugin.rb in danger-gitlab_reviewbot-1.1.0
- old
+ new
@@ -30,11 +30,11 @@
# Define the amount of reviewers to add to the merge requests.
# Default is 1.
# NOTE: The plugin won't remove existing assigned reviewers
#
# @return Int
- attr_accessor :assignees_amount
+ attr_writer :assignees_amount
def assignees_amount
@assignees_amount || 1
end
# Define the strategy for chosing reviewers.
@@ -42,10 +42,10 @@
# * Danger::AssignStrategies::RandomStrategy - assigns N reviewers at random from the group
# (excluding the author).
# * Danger::AssignStrategies::LeastBusyStrategy - assign the N users with the least amount of open MRs
# to review
#
- attr_accessor :strategy
+ attr_writer :strategy
def strategy
@strategy || Danger::AssignStrategies::RandomStrategy
end
# Call this method from the Dangerfile to assign reviewers to your merge requests