Skip to content

Commit 043b3a3

Browse files
committed
apps: add get_app
1 parent ce8c885 commit 043b3a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api/apps.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,11 @@ impl<'octo> AppsRequestHandler<'octo> {
107107

108108
self.crab.get(&route, None::<&()>).await
109109
}
110+
111+
/// Get a GitHub App by its slug.
112+
pub async fn get_app(&self, app_slug: impl AsRef<str>) -> crate::Result<crate::models::apps::App> {
113+
let route = format!("/apps/{app_slug}", app_slug = app_slug.as_ref());
114+
115+
self.crab.get(&route, None::<&()>).await
116+
}
110117
}

0 commit comments

Comments
 (0)