@@ -38,9 +38,6 @@ pub(crate) struct Config {
38
38
pub ( crate ) concern : Option < ConcernConfig > ,
39
39
pub ( crate ) mentions : Option < MentionsConfig > ,
40
40
pub ( crate ) no_merges : Option < NoMergesConfig > ,
41
- // We want this validation to run even without the entry in the config file
42
- #[ serde( default = "ValidateConfig::default" ) ]
43
- pub ( crate ) validate_config : Option < ValidateConfig > ,
44
41
pub ( crate ) pr_tracking : Option < ReviewPrefsConfig > ,
45
42
pub ( crate ) transfer : Option < TransferConfig > ,
46
43
pub ( crate ) merge_conflicts : Option < MergeConflictConfig > ,
@@ -254,15 +251,6 @@ pub(crate) struct PrioritizeConfig {
254
251
pub ( crate ) label : String ,
255
252
}
256
253
257
- #[ derive( PartialEq , Eq , Debug , serde:: Deserialize ) ]
258
- pub ( crate ) struct ValidateConfig { }
259
-
260
- impl ValidateConfig {
261
- fn default ( ) -> Option < Self > {
262
- Some ( ValidateConfig { } )
263
- }
264
- }
265
-
266
254
#[ derive( PartialEq , Eq , Debug , serde:: Deserialize ) ]
267
255
pub ( crate ) struct AutolabelConfig {
268
256
#[ serde( flatten) ]
@@ -722,7 +710,6 @@ mod tests {
722
710
review_requested: None ,
723
711
mentions: None ,
724
712
no_merges: None ,
725
- validate_config: Some ( ValidateConfig { } ) ,
726
713
pr_tracking: None ,
727
714
transfer: None ,
728
715
merge_conflicts: None ,
@@ -813,7 +800,6 @@ mod tests {
813
800
review_requested: None ,
814
801
mentions: None ,
815
802
no_merges: None ,
816
- validate_config: Some ( ValidateConfig { } ) ,
817
803
pr_tracking: None ,
818
804
transfer: None ,
819
805
merge_conflicts: None ,
0 commit comments