@@ -78,28 +78,28 @@ object MergifyAction {
7878 randomCount : Option [Int ] = randomCount): RequestReviews =
7979 new RequestReviews (users, teams, usersFromTeams, randomCount) {}
8080
81- def andUsers (user : String , users : String * ): RequestReviews =
81+ def withUsers (user : String , users : String * ): RequestReviews =
8282 copy(users = Unweighted (NonEmptyList .of(user, users : _* )).some)
8383
84- def andUsers (user : (String , Int ), users : (String , Int )* ): RequestReviews =
84+ def withUsers (user : (String , Int ), users : (String , Int )* ): RequestReviews =
8585 copy(users = Weighted (NonEmptyList .of(user, users : _* )).some)
8686
87- def andTeams (team : String , teams : String * ): RequestReviews =
87+ def withTeams (team : String , teams : String * ): RequestReviews =
8888 copy(teams = Unweighted (NonEmptyList .of(team, teams : _* )).some)
8989
90- def andTeams (team : (String , Int ), teams : (String , Int )* ): RequestReviews =
90+ def withTeams (team : (String , Int ), teams : (String , Int )* ): RequestReviews =
9191 copy(teams = Weighted (NonEmptyList .of(team, teams : _* )).some)
9292
93- def andUsersFromTeams (team : String , teams : String * ): RequestReviews =
93+ def withUsersFromTeams (team : String , teams : String * ): RequestReviews =
9494 copy(usersFromTeams = Unweighted (NonEmptyList .of(team, teams : _* )).some)
9595
96- def andUsersFromTeams (team : (String , Int ), teams : (String , Int )* ): RequestReviews =
96+ def withUsersFromTeams (team : (String , Int ), teams : (String , Int )* ): RequestReviews =
9797 copy(usersFromTeams = Weighted (NonEmptyList .of(team, teams : _* )).some)
9898
9999 def withRandomCount (count : Int ): RequestReviews =
100100 copy(randomCount = Option (count))
101101
102- def andDevelopers (developers : List [Developer ]): RequestReviews =
102+ def withDevelopers (developers : List [Developer ]): RequestReviews =
103103 copy(users = NonEmptyList .fromList(developers.map(_.id)).map(Unweighted ))
104104 }
105105
0 commit comments