summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 820c6de..fd9788a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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.