Skip to content

Commit

Permalink
Fix github_app_authentication.rs (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
dima74 authored Sep 7, 2023
1 parent 9f8a94e commit 7194ac5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/github_app_authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 7194ac5

Please sign in to comment.