1.10.3 support multiple github webhook app installations

This commit is contained in:
mbecker20
2024-07-09 02:05:38 -07:00
parent e4d0c56e49
commit e106e38cd9
18 changed files with 196 additions and 163 deletions

View File

@@ -239,7 +239,12 @@ fn core_info() -> &'static String {
.unwrap_or_else(|| config.host.clone()),
transparent_mode: config.transparent_mode,
ui_write_disabled: config.ui_write_disabled,
github_webhook_owners: config.github_webhook_app.owners.clone(),
github_webhook_owners: config
.github_webhook_app
.installations
.iter()
.map(|i| i.namespace.to_string())
.collect(),
};
serde_json::to_string(&info)
.context("failed to serialize GetCoreInfoResponse")