Skip to content

Commit 5648e1f

Browse files
committed
Remove old triagebot.toml validation handler
1 parent 1a554f9 commit 5648e1f

File tree

3 files changed

+0
-144
lines changed

3 files changed

+0
-144
lines changed

src/config.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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)]
267255
pub(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,

src/handlers.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ pub mod rustc_commits;
5757
mod shortcut;
5858
mod transfer;
5959
pub mod types_planning_updates;
60-
mod validate_config;
6160

6261
pub async fn handle(ctx: &Context, event: &Event) -> Vec<HandlerError> {
6362
let config = config::get(&ctx.github, event.repo()).await;
@@ -232,7 +231,6 @@ issue_handlers! {
232231
notify_zulip,
233232
review_requested,
234233
pr_tracking,
235-
validate_config,
236234
}
237235

238236
macro_rules! command_handlers {

src/handlers/validate_config.rs

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)