Skip to content

Commit 6231db5

Browse files
committed
simplify config to only have top level
1 parent f8307d7 commit 6231db5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub(crate) struct RelabelConfig {
8585
#[derive(PartialEq, Eq, Debug, serde::Deserialize)]
8686
pub(crate) struct ShortcutConfig {
8787
#[serde(default)]
88-
pub(crate) allow: Vec<String>,
88+
_empty: (),
8989
}
9090

9191
#[derive(PartialEq, Eq, Debug, serde::Deserialize)]
@@ -257,9 +257,6 @@ mod tests {
257257
infra = "T-infra"
258258
259259
[shortcut]
260-
allow = [
261-
"ready"
262-
]
263260
"#;
264261
let config = toml::from_str::<Config>(&config).unwrap();
265262
let mut ping_teams = HashMap::new();
@@ -295,7 +292,7 @@ mod tests {
295292
nominate: Some(NominateConfig {
296293
teams: nominate_teams
297294
}),
298-
shortcut: Some(ShortcutConfig {allow: vec!["ready".into()]}),
295+
shortcut: Some(ShortcutConfig { _empty: () }),
299296
prioritize: None,
300297
major_change: None,
301298
glacier: None,

0 commit comments

Comments
 (0)