|
@@ -24,6 +24,7 @@ pub(crate) struct Config {
|
|
|
pub(crate) prioritize: Option<PrioritizeConfig>,
|
|
|
pub(crate) major_change: Option<MajorChangeConfig>,
|
|
|
pub(crate) glacier: Option<GlacierConfig>,
|
|
|
+ pub(crate) close: Option<CloseConfig>,
|
|
|
pub(crate) autolabel: Option<AutolabelConfig>,
|
|
|
pub(crate) notify_zulip: Option<NotifyZulipConfig>,
|
|
|
pub(crate) github_releases: Option<GitHubReleasesConfig>,
|
|
@@ -138,6 +139,9 @@ pub(crate) struct MajorChangeConfig {
|
|
|
#[derive(PartialEq, Eq, Debug, serde::Deserialize)]
|
|
|
pub(crate) struct GlacierConfig {}
|
|
|
|
|
|
+#[derive(PartialEq, Eq, Debug, serde::Deserialize)]
|
|
|
+pub(crate) struct CloseConfig {}
|
|
|
+
|
|
|
pub(crate) async fn get(gh: &GithubClient, repo: &str) -> Result<Arc<Config>, ConfigurationError> {
|
|
|
if let Some(config) = get_cached_config(repo) {
|
|
|
log::trace!("returning config for {} from cache", repo);
|
|
@@ -282,6 +286,7 @@ mod tests {
|
|
|
prioritize: None,
|
|
|
major_change: None,
|
|
|
glacier: None,
|
|
|
+ close: None,
|
|
|
autolabel: None,
|
|
|
notify_zulip: None,
|
|
|
github_releases: None,
|