Add ping hook method

This commit is contained in:
Kanstantsin Shautsou
2017-07-10 02:39:03 +03:00
parent f2fe8eaf86
commit 8d1b44db97

View File

@@ -41,6 +41,13 @@ public abstract class GHHook extends GHObject {
return Collections.unmodifiableMap(config);
}
/**
* @see <a href="https://developer.github.com/v3/repos/hooks/#ping-a-hook">Ping hook</a>
*/
public void ping() throws IOException {
new Requester(getRoot()).method("POST").to(getApiRoute() + "/pings");
}
/**
* Deletes this hook.
*/