@@ -92,6 +92,10 @@ pub(crate) struct PingTeamConfig {
92
92
pub ( crate ) label : Option < String > ,
93
93
}
94
94
95
+ #[ derive( PartialEq , Eq , Debug , serde:: Deserialize ) ]
96
+ #[ serde( deny_unknown_fields) ]
97
+ pub ( crate ) struct AssignReviewPrefsConfig { }
98
+
95
99
#[ derive( PartialEq , Eq , Debug , serde:: Deserialize ) ]
96
100
#[ serde( deny_unknown_fields) ]
97
101
pub ( crate ) struct AssignConfig {
@@ -111,6 +115,9 @@ pub(crate) struct AssignConfig {
111
115
pub ( crate ) owners : HashMap < String , Vec < String > > ,
112
116
#[ serde( default ) ]
113
117
pub ( crate ) users_on_vacation : HashSet < String > ,
118
+ /// Should review preferences be taken into account when deciding who to assign to a PR?
119
+ #[ serde( default ) ]
120
+ pub ( crate ) review_prefs : Option < AssignReviewPrefsConfig > ,
114
121
}
115
122
116
123
impl AssignConfig {
@@ -656,6 +663,7 @@ mod tests {
656
663
adhoc_groups: HashMap :: new( ) ,
657
664
owners: HashMap :: new( ) ,
658
665
users_on_vacation: HashSet :: from( [ "jyn514" . into( ) ] ) ,
666
+ review_prefs: None ,
659
667
} ) ,
660
668
note: Some ( NoteConfig { _empty: ( ) } ) ,
661
669
ping: Some ( PingConfig { teams: ping_teams } ) ,
@@ -736,6 +744,7 @@ mod tests {
736
744
adhoc_groups: HashMap :: new( ) ,
737
745
owners: HashMap :: new( ) ,
738
746
users_on_vacation: HashSet :: new( ) ,
747
+ review_prefs: None ,
739
748
} ) ,
740
749
note: None ,
741
750
ping: None ,
0 commit comments