From 7194ac597bce1d03d4724d19b2d8724c89f39fca Mon Sep 17 00:00:00 2001 From: Dmitry Murzin Date: Thu, 7 Sep 2023 09:56:19 +0300 Subject: [PATCH] Fix `github_app_authentication.rs` (#458) --- examples/github_app_authentication.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/github_app_authentication.rs b/examples/github_app_authentication.rs index 9644a3b3..0720a0a9 100644 --- a/examples/github_app_authentication.rs +++ b/examples/github_app_authentication.rs @@ -8,11 +8,7 @@ async fn main() -> octocrab::Result<()> { let key = jsonwebtoken::EncodingKey::from_rsa_pem(app_private_key.as_bytes()).unwrap(); let octocrab = Octocrab::builder().app(app_id, key).build()?; - let installed_repos: InstallationRepositories = octocrab - .get("/installation/repositories", None::<&()>) - .await - .unwrap(); - let _repos = installed_repos.repositories; + let _installations = octocrab.apps().installations().send().await.unwrap(); Ok(()) }