Skip to content

Commit 8d1b44d

Browse files
committed
Add ping hook method
1 parent f2fe8ea commit 8d1b44d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/kohsuke/github/GHHook.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ public Map<String, String> getConfig() {
4141
return Collections.unmodifiableMap(config);
4242
}
4343

44+
/**
45+
* @see <a href="https://developer.github.com/v3/repos/hooks/#ping-a-hook">Ping hook</a>
46+
*/
47+
public void ping() throws IOException {
48+
new Requester(getRoot()).method("POST").to(getApiRoute() + "/pings");
49+
}
50+
4451
/**
4552
* Deletes this hook.
4653
*/

0 commit comments

Comments
 (0)