diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -252,7 +252,7 @@ use models::{AppId, InstallationId, InstallationToken}; pub use self::{ api::{ - actions, activity, apps, checks, commits, current, events, gists, gitignore, issues, + actions, activity, apps, checks, commits, current, events, gists, gitignore, hooks, issues, licenses, markdown, orgs, projects, pulls, ratelimit, repos, search, teams, workflows, }, error::{Error, GitHubError}, @@ -1148,6 +1148,11 @@ impl Octocrab { pub fn ratelimit(&self) -> ratelimit::RateLimitHandler { ratelimit::RateLimitHandler::new(self) } + + /// Creates a [`hooks::HooksHandler`] that returns the API hooks + pub fn hooks(&self, owner: impl Into<String>) -> hooks::HooksHandler { + hooks::HooksHandler::new(self, owner.into()) + } } /// # GraphQL API. |