Merge pull request #362 from KostyaSha/pingHook

Add ping hook method
This commit is contained in:
Kohsuke Kawaguchi
2017-09-08 10:34:45 -07:00
committed by GitHub

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.
*/