@@ -38,9 +38,6 @@ pub(crate) struct Config {
3838 pub ( crate ) concern : Option < ConcernConfig > ,
3939 pub ( crate ) mentions : Option < MentionsConfig > ,
4040 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 > ,
4441 pub ( crate ) pr_tracking : Option < ReviewPrefsConfig > ,
4542 pub ( crate ) transfer : Option < TransferConfig > ,
4643 pub ( crate ) merge_conflicts : Option < MergeConflictConfig > ,
@@ -254,15 +251,6 @@ pub(crate) struct PrioritizeConfig {
254251 pub ( crate ) label : String ,
255252}
256253
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-
266254#[ derive( PartialEq , Eq , Debug , serde:: Deserialize ) ]
267255pub ( crate ) struct AutolabelConfig {
268256 #[ serde( flatten) ]
@@ -722,7 +710,6 @@ mod tests {
722710 review_requested: None ,
723711 mentions: None ,
724712 no_merges: None ,
725- validate_config: Some ( ValidateConfig { } ) ,
726713 pr_tracking: None ,
727714 transfer: None ,
728715 merge_conflicts: None ,
@@ -813,7 +800,6 @@ mod tests {
813800 review_requested: None ,
814801 mentions: None ,
815802 no_merges: None ,
816- validate_config: Some ( ValidateConfig { } ) ,
817803 pr_tracking: None ,
818804 transfer: None ,
819805 merge_conflicts: None ,
0 commit comments